From de9270bb9908beacecb2bf6cebebddbbc287eeaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Schaerer?= Date: Tue, 31 Aug 2010 15:40:32 +0200 Subject: [PATCH] tell the user he needs to source his *rc before he can start using autojump --- install.sh | 3 +++ install.zsh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/install.sh b/install.sh index e6dca51..3b56e17 100755 --- a/install.sh +++ b/install.sh @@ -61,6 +61,8 @@ if [ -d "/etc/profile.d" ]; then echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc fi echo "Done!" + echo + echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump." else echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]" read ans @@ -82,6 +84,7 @@ else echo -e "\n# Get the aliases and functions" >> ~/.bash_profile echo -e "if [ -f ~/.bashrc ]; then\n . ~/.bashrc\nfi" >> ~/.bash_profile fi + echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump." else echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!" fi diff --git a/install.zsh b/install.zsh index cf46e72..c9aea24 100755 --- a/install.zsh +++ b/install.zsh @@ -67,6 +67,8 @@ if [ -d "/etc/profile.d" ]; then echo "or" echo " source /etc/profile" echo "to your ~/.zshrc if it's not there already" + echo + echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump." else echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]" read ans @@ -75,6 +77,9 @@ else echo "" >> ~/.zshrc echo "#autojump" >> ~/.zshrc cat autojump.zsh >> ~/.zshrc + echo "Done!" + echo + echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump." else echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!" fi