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:
parent
54aeff1cae
commit
da07fc3308
11
install.sh
11
install.sh
@ -11,6 +11,9 @@ function help_msg {
|
|||||||
echo " -p, --prefix PATH Use PATH as prefix"
|
echo " -p, --prefix PATH Use PATH as prefix"
|
||||||
echo " -Z, --zshshare PATH Use PATH as zsh share destination"
|
echo " -Z, --zshshare PATH Use PATH as zsh share destination"
|
||||||
echo
|
echo
|
||||||
|
echo " -b, --bash Assume shell is bash"
|
||||||
|
echo " -z, --zsh Assume shell is zsh"
|
||||||
|
echo
|
||||||
echo " -f, --force Ignore Python version check"
|
echo " -f, --force Ignore Python version check"
|
||||||
echo " -n, --dry_run Only show installation paths, don't install anything"
|
echo " -n, --dry_run Only show installation paths, don't install anything"
|
||||||
echo
|
echo
|
||||||
@ -56,6 +59,10 @@ while true; do
|
|||||||
set -- "--local" "${@:2}"
|
set -- "--local" "${@:2}"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
-b|--bash)
|
||||||
|
shell="bash"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-d|--destdir)
|
-d|--destdir)
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
destdir=$2; shift 2
|
destdir=$2; shift 2
|
||||||
@ -98,6 +105,10 @@ while true; do
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
-z|--zsh)
|
||||||
|
shell="zsh"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-Z|--zshshare)
|
-Z|--zshshare)
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
zshsharedir=$2; shift 2
|
zshsharedir=$2; shift 2
|
||||||
|
Loading…
Reference in New Issue
Block a user