mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-02 11:47:15 +08:00
FIxing a problem caused by the strange "command command -v rbenv" command
This commit is contained in:
parent
edd719c645
commit
e77c6cd77a
|
@ -6,11 +6,11 @@
|
||||||
if [ -e "$RBENV_BIN_ROOT/rbenv" ]
|
if [ -e "$RBENV_BIN_ROOT/rbenv" ]
|
||||||
set rbenv_binary "$RBENV_BIN_ROOT/rbenv"
|
set rbenv_binary "$RBENV_BIN_ROOT/rbenv"
|
||||||
_prepend_path "$RBENV_BIN_ROOT"
|
_prepend_path "$RBENV_BIN_ROOT"
|
||||||
else if [ (command command -v rbenv) ]
|
|
||||||
set rbenv_binary (command command -v rbenv)
|
|
||||||
else if [ -e "$HOME/.rbenv/bin/rbenv" ]
|
else if [ -e "$HOME/.rbenv/bin/rbenv" ]
|
||||||
set rbenv_binary "$HOME/.rbenv/bin/rbenv"
|
set rbenv_binary "$HOME/.rbenv/bin/rbenv"
|
||||||
_prepend_path "$HOME/.rbenv/bin"
|
_prepend_path "$HOME/.rbenv/bin"
|
||||||
|
else if [ (command command -v rbenv) ]
|
||||||
|
set rbenv_binary (command command -v rbenv)
|
||||||
else
|
else
|
||||||
echo "Could not find rbenv. Make sure it's on your system path, in your home directory or set the RBENV_BIN_ROOT environment variable pointing to the directory where you unpacked rbenv."
|
echo "Could not find rbenv. Make sure it's on your system path, in your home directory or set the RBENV_BIN_ROOT environment variable pointing to the directory where you unpacked rbenv."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user