1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Restore --bash and --zsh flags

This commit is contained in:
John Simon 2013-03-07 14:57:07 -05:00
parent 54aeff1cae
commit da07fc3308

View File

@ -11,6 +11,9 @@ function help_msg {
echo " -p, --prefix PATH Use PATH as prefix"
echo " -Z, --zshshare PATH Use PATH as zsh share destination"
echo
echo " -b, --bash Assume shell is bash"
echo " -z, --zsh Assume shell is zsh"
echo
echo " -f, --force Ignore Python version check"
echo " -n, --dry_run Only show installation paths, don't install anything"
echo
@ -56,6 +59,10 @@ while true; do
set -- "--local" "${@:2}"
fi
;;
-b|--bash)
shell="bash"
shift
;;
-d|--destdir)
if [ $# -gt 1 ]; then
destdir=$2; shift 2
@ -98,6 +105,10 @@ while true; do
exit 1
fi
;;
-z|--zsh)
shell="zsh"
shift
;;
-Z|--zshshare)
if [ $# -gt 1 ]; then
zshsharedir=$2; shift 2