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

Update install.sh help documentation

This commit is contained in:
William Ting 2012-11-22 14:51:46 -06:00
parent 626946bccc
commit 44c066d21d

View File

@ -11,7 +11,7 @@ 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 " -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
echo "Will install autojump into:" echo "Will install autojump into:"
@ -23,9 +23,8 @@ function help_msg {
echo ' zsh functions: $destdir$zshsharedir' echo ' zsh functions: $destdir$zshsharedir'
echo echo
echo 'Unless specified, $zshshare will be :' echo 'Unless specified, $zshshare will be :'
echo ' - First writable directory in $fpath when --auto was used' echo ' - $destdir$prefix/functions for local installations'
echo ' - $destdir$prefix/functions if --local was used' echo ' - $destdir$prefix/share/zsh/site-functions for all other installations'
echo ' - $destdir$prefix/share/zsh/site-functions'
} }
dry_run= dry_run=
@ -142,7 +141,7 @@ fi
# check shell support # check shell support
if [[ ${shell} != "bash" ]] && [[ ${shell} != "zsh" ]]; then if [[ ${shell} != "bash" ]] && [[ ${shell} != "zsh" ]]; then
echo "Unsupported shell (${shell}). Only bash and zsh shells are supported." echo "Unsupported shell (${shell}). Only Bash and Zsh shells are supported."
exit 1 exit 1
fi fi