Print correct help info for init command based on the shell used

This commit is contained in:
2013-06-12 00:49:21 +01:00
parent 9e8a5c3dc9
commit 536f625b5d

View File

@@ -39,10 +39,20 @@ if [[ " $@ " == *" --help "* ]]; then
echo "usage: tmuxifier init - echo "usage: tmuxifier init -
Load Tmuxifier by adding the following to your ${profile}: Load Tmuxifier by adding the following to your ${profile}:
"
eval \"\$(tmuxifier init -)\" case "$shell" in
csh | tcsh )
echo " eval \`tmuxifier init -\`
"
;;
* )
echo " eval \"\$(tmuxifier init -)\"
"
;;
esac
You might also need to add Tmuxifier's bin directory to your PATH." echo "You might also need to add Tmuxifier's bin directory to your PATH."
exit exit
fi fi