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:
Daniel M. Drucker 2018-03-14 12:17:03 -04:00 committed by GitHub
parent 45813c6800
commit 0bfed09c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,8 @@ GOTO_FILE_LOCATION='/usr/local/share/goto.sh'
RC=""
if [ -f ~/.bashrc ]; then
RC="$HOME/.bashrc"
elif [ -f ~/.cshrc ]; then
RC="$HOME/.cshrc"
elif [ -f ~/.kshrc ]; then
RC="$HOME/.kshrc"
#elif [ -f ~/.kshrc ]; then
# RC="$HOME/.kshrc"
elif [ -f ~/.zshrc ]; then
RC="$HOME/.zshrc"
fi
@ -57,5 +55,5 @@ if [ -n "$RC" ]; then
source "$GOTO_FILE_LOCATION"
else
_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