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:
parent
448696ef9b
commit
2a3fbd4687
@ -21,9 +21,9 @@ function add_msg {
|
||||
echo
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
echo
|
||||
|
@ -24,9 +24,9 @@ function remove_msg {
|
||||
echo "Please remove the line from .${2}rc :"
|
||||
echo
|
||||
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
|
||||
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
|
||||
echo
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user