diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-23 18:51:22 +0300 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-23 18:51:22 +0300 |
| commit | 690f8abc4c1521bd92e98c095c319e8696d45f6d (patch) | |
| tree | 0b47e9a766984874fee08f538c3da083eab6108f /scripts/alacritty.sh | |
| parent | scripts: vim_plugins.sh -> vim.sh (diff) | |
| download | linux-home-690f8abc4c1521bd92e98c095c319e8696d45f6d.tar.gz linux-home-690f8abc4c1521bd92e98c095c319e8696d45f6d.zip | |
scripts: add themes for Alacritty
Diffstat (limited to 'scripts/alacritty.sh')
| -rwxr-xr-x | scripts/alacritty.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/alacritty.sh b/scripts/alacritty.sh new file mode 100755 index 0000000..56d47f6 --- /dev/null +++ b/scripts/alacritty.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit 2> /dev/null || true +shopt -s lastpipe + +config_dir="$HOME/.config/alacritty" +readonly config_dir + +pull() { + local themes_dir + themes_dir="$config_dir/themes" + local themes_url='https://github.com/alacritty/alacritty-theme.git' + + if [ -d "$themes_dir" ]; then + echo "Updating themes for alacritty" + git -C "$themes_dir" pull + else + echo "Installing themes for alacritty" + git clone -q "$themes_url" "$themes_dir" + fi +} + +main() { + mkdir -p -- "$config_dir" + pull +} + +main |
