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

change default line to add to .bashrc/.zshrc message

This commit is contained in:
William Ting 2012-03-15 11:00:43 -10:00
parent 448696ef9b
commit 2a3fbd4687
2 changed files with 4 additions and 4 deletions

View File

@ -21,9 +21,9 @@ function add_msg {
echo echo
if [ "${1}" == "global" ]; then if [ "${1}" == "global" ]; then
echo -e "\tsource /etc/profile.d/autojump.${2}" echo -e "\t[[ -f /etc/profile.d/autojump.${2} ]] && source /etc/profile.d/autojump.${2}"
elif [ "${1}" == "local" ]; then elif [ "${1}" == "local" ]; then
echo -e "\tsource ~/.autojump/etc/profile.d/autojump.${2}" echo -e "\t[[ -f ~/.autojump/etc/profile.d/autojump.${2} ]] && source ~/.autojump/etc/profile.d/autojump.${2}"
fi fi
echo echo

View File

@ -24,9 +24,9 @@ function remove_msg {
echo "Please remove the line from .${2}rc :" echo "Please remove the line from .${2}rc :"
echo echo
if [ "${1}" == "global" ]; then if [ "${1}" == "global" ]; then
echo -e "\tsource /etc/profile.d/autojump.${2}" echo -e "\t[[ -f /etc/profile.d/autojump.${2} ]] && source /etc/profile.d/autojump.${2}"
elif [ "${1}" == "local" ]; then elif [ "${1}" == "local" ]; then
echo -e "\tsource ~/.autojump/etc/profile.d/autojump.${2}" echo -e "\t[[ -f ~/.autojump/etc/profile.d/autojump.${2} ]] && source ~/.autojump/etc/profile.d/autojump.${2}"
fi fi
echo echo
} }