diff options
Diffstat (limited to 'stow/rcs')
-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="" |