You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wting_autojump/bin/autojump.sh

15 lines
629 B

# Source autojump on BASH or ZSH depending on the shell
if [ "$BASH_VERSION" ] && [ -n "$PS1" ] && echo $SHELLOPTS | grep -v posix >>/dev/null; then
if [ -f ~/.autojump/etc/profile.d/autojump.bash ]; then
source ~/.autojump/etc/profile.d/autojump.bash
elif [ -f /etc/profile.d/autojump.bash ]; then
source /etc/profile.d/autojump.bash
fi
elif [ "$ZSH_VERSION" ] && [ -n "$PS1" ]; then
if [ -f ~/.autojump/etc/profile.d/autojump.zsh ]; then
source ~/.autojump/etc/profile.d/autojump.zsh
elif [ -f /etc/profile.d/autojump.zsh ]; then
source /etc/profile.d/autojump.zsh
fi
fi