Bash: config changes

This commit is contained in:
Théophile Bastian 2020-03-25 18:05:36 +01:00
parent 1d652d0417
commit 27e0004b47
2 changed files with 11 additions and 2 deletions

View file

@ -41,3 +41,4 @@ alias showcolors='for i in {0..255} ; do \
printf "\n"; \
fi; done'
alias scanimage-arcoloc="scanimage -d 'smfp:net;192.168.0.202' --format=jpeg"

View file

@ -52,10 +52,18 @@ export TERMINAL="/usr/bin/terminator"
export LC_REALUSER='tbastian'
# Autojump
[ -f /etc/profile.d/autojump.bash ] && source /etc/profile.d/autojump.bash
# Opam
which opam > /dev/null 2>&1 && [ -d ~/.opam ] && eval $(opam config env)
# Gem
if [ -d "$HOME/.gem/ruby/2.4.0/bin" ] ; then
export PATH="$PATH:$HOME/.gem/ruby/2.4.0/bin"
gempath="$HOME/.gem/ruby"
if [ -d "$gempath" ] && [ "$(ls -1 $gempath | wc -l)" -gt 0 ]
then
cur_version=$(ls -1t $gempath | head -n 1)
cur_path="$gempath/$cur_version/bin"
export PATH="$PATH:$cur_path"
fi
unset gempath