version-independent loading of the ruby bin directory
This commit is contained in:
parent
56d05f5c2a
commit
b2cc222176
1 changed files with 6 additions and 2 deletions
8
.bashrc
8
.bashrc
|
@ -18,8 +18,12 @@ export DEBEMAIL="rodolphe.breard@uraniborg.net"
|
|||
export DEBFULLNAME="$USER_NICKNAME"
|
||||
|
||||
# Ruby bin directory
|
||||
if [ -d "$HOME/.gem/ruby/2.0.0/bin" ]; then
|
||||
export PATH="$PATH:$HOME/.gem/ruby/2.0.0/bin"
|
||||
if [ -d "$HOME/.gem/ruby" ]; then
|
||||
for file in $HOME/.gem/ruby/*; do
|
||||
if [ -d "$file" -a -d "$file/bin" ]; then
|
||||
export PATH="$PATH:$file/bin"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# OS
|
||||
|
|
Loading…
Reference in a new issue