autojump.plugin.zsh 420 B

123456789
  1. if [ $commands[autojump] ]; then # check if autojump is installed
  2. if [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
  3. . /usr/share/autojump/autojump.zsh
  4. elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
  5. . /etc/profile.d/autojump.zsh
  6. elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
  7. . `brew --prefix`/etc/autojump
  8. fi
  9. fi