diff options
Diffstat (limited to 'stow/rcs/.bash_vars')
-rw-r--r-- | stow/rcs/.bash_vars | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/stow/rcs/.bash_vars b/stow/rcs/.bash_vars index 1cf2b27..e86c703 100644 --- a/stow/rcs/.bash_vars +++ b/stow/rcs/.bash_vars @@ -61,6 +61,17 @@ export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_us=$(tput smul; tput setaf 3) export LESS_TERMCAP_ue=$'\E[0m' +# Set LS_COLORS (enable color support of ls and others) +if [ -x /usr/bin/dircolors ]; then + dircolorsFile="$HOME/.config/dircolors" + [ -r "$dircolorsFile" ] && + eval "$(dircolors -b $dircolorsFile)" || + eval "$(dircolors -b)" +fi + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x "/usr/bin/lesspipe.sh" ] && eval "$(SHELL=/bin/sh lesspipe.sh)" + ######### # $PATH # ######### @@ -69,19 +80,19 @@ export LESS_TERMCAP_ue=$'\E[0m' export JAVA_HOME="/usr/lib/jvm/default/" PATH="${PATH}:${JAVA_HOME}/bin" -# add scripts folder to path plus its direct subfolders +# Add scripts folder to path plus its direct subfolders for dir in $(find "$HOME/scripts" -type d | grep -v '/\.'); do PATH="${PATH}:${dir}" done -# add ruby bins (gems) folder to path +# Add ruby bins (gems) folder to path PATH="${PATH}:$(ruby -e 'puts Gem.user_dir')/bin" -# add cargo bins folder to path +# Add cargo bins folder to path PATH="${PATH}:${HOME}/.cargo/bin" -# add pip local bins to path +# Add pip local bins to path PATH="${PATH}:${HOME}/.local/bin" -# export final PATH +# Export final PATH export PATH |