Skip to content

Commit

Permalink
feat: add host specific configuration for alacritty
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Nov 4, 2024
1 parent 93e6c0b commit f92e948
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions alacritty/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
host.toml
5 changes: 5 additions & 0 deletions alacritty/alacritty.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[general]
import = [
"host.toml"
]

[[colors.indexed_colors]]
color = "0xd18616"
index = 16
Expand Down
Empty file.
5 changes: 5 additions & 0 deletions scripts/alacritty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ usage() {
'
}

root=${root:?"root must be set"}

main_brew() {
require_brew_cask alacritty
}
Expand All @@ -26,5 +28,8 @@ main_pacman() {
}

main() {
if [ -f "$root/alacritty/$HOSTNAME.toml" ]; then
ln -s "$HOSTNAME.toml" "$root/alacritty/host.toml"
fi
configfile alacritty
}

0 comments on commit f92e948

Please sign in to comment.