From 536f625b5d72bad87514994bb95e67151a38cd07 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 12 Jun 2013 00:49:21 +0100 Subject: [PATCH] Print correct help info for init command based on the shell used --- libexec/tmuxifier-init | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libexec/tmuxifier-init b/libexec/tmuxifier-init index 1205c3e..a467bea 100755 --- a/libexec/tmuxifier-init +++ b/libexec/tmuxifier-init @@ -39,10 +39,20 @@ if [[ " $@ " == *" --help "* ]]; then echo "usage: tmuxifier init - 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 fi