autojump.plugin.zsh 552 B

1234567891011
  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 [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
  7. . /opt/local/etc/profile.d/autojump.zsh
  8. elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.zsh ]; then # mac os x with brew
  9. . `brew --prefix`/etc/autojump.zsh
  10. fi
  11. fi