1
0
Fork 0

fix calling of the alacritty-import.sh script and the script itself too

This commit is contained in:
Pratham Patel 2024-01-06 21:53:22 +05:30
parent 4e7c2ee524
commit 4a24cfc91c
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
7 changed files with 10 additions and 13 deletions

View File

@ -1,6 +1,6 @@
# shellcheck disable=SC2139
# The above directive disables https://www.shellcheck.net/wiki/SC2139
dash "${HOME}/.local/scripts/other-common-scripts/alacritty-import.sh"
bash "${HOME}/.local/scripts/other-common-scripts/alacritty-import.sh" &
unalias -a
if [[ "$(uname)" == 'Linux' ]]; then

View File

@ -9,7 +9,7 @@
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
import:
- ~/.config/alacritty/load_intermediate.yml
- ~/.config/alacritty/platform.yml
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables

View File

@ -33,12 +33,9 @@ end
function fish_mode_prompt
end
function setup_alacritty_for_os
bash "$HOME/.local/scripts/other-common-scripts/alacritty-import.sh" &
end
function initial_fish_setup
setup_alacritty_for_os
bash "$HOME/.local/scripts/other-common-scripts/alacritty-import.sh" &
fish_load_sudo_alias
fish_vi_key_bindings
end

2
.gitignore vendored
View File

@ -6,7 +6,7 @@
.cargo/*
.config/*.xml*
.config/.gsd-keyboard.settings-ported
.config/alacritty/load_intermediate.yml
.config/alacritty/platform.yml
.config/bottom/*
.config/btop/*
.config/dconf/*

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -euf
set -eu
if [ ! -f "${HOME}/.config/alacritty/load_intermediate.yml" ]; then
if uname | grep -q Linux; then
ln -s "${HOME}/.config/alacritty/load_linux.yml" "${HOME}/.config/alacritty/load_intermediate.yml"
else
ln -s "${HOME}/.config/alacritty/load_macos.yml" "${HOME}/.config/alacritty/load_intermediate.yml"
if [[ ! -f "${HOME}/.config/alacritty/platform.yml" ]]; then
if [[ "$(uname -s)" == 'Linux' ]]; then
ln -s "${HOME}/.config/alacritty/"{linux,platform}.yml
elif [[ "$(uname -s)" == 'Darwin' ]]; then
ln -s "${HOME}/.config/alacritty/"{darwin,platform}.yml
fi
fi