mirror of
https://github.com/iridakos/goto.git
synced 2025-05-30 22:30:12 -07:00
make install not try for shells we don't support
This script will never support csh, barring extremely major changes, so remove that. Comment out kshrc for now - we might be able to support that soon.
This commit is contained in:
parent
45813c6800
commit
0bfed09c84
8
install
8
install
@ -36,10 +36,8 @@ GOTO_FILE_LOCATION='/usr/local/share/goto.sh'
|
|||||||
RC=""
|
RC=""
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
RC="$HOME/.bashrc"
|
RC="$HOME/.bashrc"
|
||||||
elif [ -f ~/.cshrc ]; then
|
#elif [ -f ~/.kshrc ]; then
|
||||||
RC="$HOME/.cshrc"
|
# RC="$HOME/.kshrc"
|
||||||
elif [ -f ~/.kshrc ]; then
|
|
||||||
RC="$HOME/.kshrc"
|
|
||||||
elif [ -f ~/.zshrc ]; then
|
elif [ -f ~/.zshrc ]; then
|
||||||
RC="$HOME/.zshrc"
|
RC="$HOME/.zshrc"
|
||||||
fi
|
fi
|
||||||
@ -57,5 +55,5 @@ if [ -n "$RC" ]; then
|
|||||||
source "$GOTO_FILE_LOCATION"
|
source "$GOTO_FILE_LOCATION"
|
||||||
else
|
else
|
||||||
_goto_install_error "Error sourcing goto in your startup file.."
|
_goto_install_error "Error sourcing goto in your startup file.."
|
||||||
_goto_install_error "E.g ~/.bashrc ~/.cshrc etc.."
|
_goto_install_error "E.g ~/.bashrc ~/.zshrc etc.."
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user