diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2023-12-25 01:23:47 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2023-12-25 01:23:47 +0100 |
commit | 45c2d1cab7d97d4d908bbc50d4dc22cc71ec8ee9 (patch) | |
tree | 5ba7941d9436970d62be4ece092d14dcf11d71bb | |
parent | 965b2159c0a3328f86fcb72fa551820e24e7949c (diff) | |
download | configs-45c2d1cab7d97d4d908bbc50d4dc22cc71ec8ee9.tar.gz configs-45c2d1cab7d97d4d908bbc50d4dc22cc71ec8ee9.zip |
Added some shields to shell initialization scripts.
-rw-r--r-- | stow/rcs/.bashrc | 4 | ||||
-rw-r--r-- | stow/rcs/.config/rcs/bash_vars | 6 | ||||
-rw-r--r-- | stow/rcs/.profile | 6 |
3 files changed, 10 insertions, 6 deletions
diff --git a/stow/rcs/.bashrc b/stow/rcs/.bashrc index ea22e1f..241f261 100644 --- a/stow/rcs/.bashrc +++ b/stow/rcs/.bashrc @@ -53,5 +53,5 @@ PS1="${keys}[${wd}\u${keys}@${wd}\h${keys}]${wd}\w${umode}\$${def} " [ -f "$XDG_CONFIG_HOME/rcs/device_aliases" ] && . "$XDG_CONFIG_HOME/rcs/device_aliases" # fzf goodies -. /usr/share/fzf/key-bindings.bash -. /usr/share/fzf/completion.bash +[ -f "/usr/share/fzf/key-bindings.bash" ] && . "/usr/share/fzf/key-bindings.bash" +[ -f "/usr/share/fzf/completion.bash" ] && . "/usr/share/fzf/completion.bash" diff --git a/stow/rcs/.config/rcs/bash_vars b/stow/rcs/.config/rcs/bash_vars index f835c7c..75b2e97 100644 --- a/stow/rcs/.config/rcs/bash_vars +++ b/stow/rcs/.config/rcs/bash_vars @@ -105,8 +105,10 @@ export JAVA_HOME="/usr/lib/jvm/default/" PATH="${PATH}:${JAVA_HOME}/bin" # Add ruby bins (gems) folder to path -export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" -PATH="${PATH}:${GEM_HOME}/bin" +if type ruby &>/dev/null; then + export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" + PATH="${PATH}:${GEM_HOME}/bin" +fi # Add cargo bins folder to path PATH="${PATH}:${HOME}/.cargo/bin" diff --git a/stow/rcs/.profile b/stow/rcs/.profile index e58d10f..083ff4f 100644 --- a/stow/rcs/.profile +++ b/stow/rcs/.profile @@ -20,8 +20,10 @@ export XDG_DATA_HOME="$HOME/.local/share" [ -f "$XDG_CONFIG_HOME/rcs/device_vars" ] && . "$XDG_CONFIG_HOME/rcs/device_vars" # Login commands -sudo loadkeys es -sudo -n loadkeys "$XDG_CONFIG_HOME/ttymaps.kmap" +if tty | grep -Fq 'tty'; then + sudo loadkeys es + sudo -n loadkeys "$XDG_CONFIG_HOME/ttymaps.kmap" +fi [[ $(tty) = "/dev/tty6" ]] && setfont alt-8x8 xinitrc="" |