Only load rbenv if on system
This commit is contained in:
parent
fed3f011eb
commit
3f577e7682
1 changed files with 6 additions and 2 deletions
4
.zshrc
4
.zshrc
|
@ -13,8 +13,10 @@ if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
PATH="/opt/boxen/homebrew/opt/coreutils/libexec/gnubin:$PATH"
|
PATH="/opt/boxen/homebrew/opt/coreutils/libexec/gnubin:$PATH"
|
||||||
MANPATH="/opt/boxen/homebrew/apt/coreutils/libexec/gnubin:$MANPATH"
|
MANPATH="/opt/boxen/homebrew/apt/coreutils/libexec/gnubin:$MANPATH"
|
||||||
else
|
else
|
||||||
|
if test -d "$HOME/.rbenv/bin" ; then
|
||||||
export PATH="$HOME/.rvenv/bin:$PATH"
|
export PATH="$HOME/.rvenv/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if test -d /soft/linux/pkg/bin ; then
|
if test -d /soft/linux/pkg/bin ; then
|
||||||
export PATH=/soft/linux/pkg/bin:${PATH};
|
export PATH=/soft/linux/pkg/bin:${PATH};
|
||||||
|
@ -95,5 +97,7 @@ export EDITOR='vim'
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
source /opt/boxen/env.sh
|
source /opt/boxen/env.sh
|
||||||
else
|
else
|
||||||
|
if test -d "$HOME/.rbenv/bin" ; then
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init -)"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue