923d2c85b40e14ea90d4342be1e1905bb238ea0b

Author
Geoffrey Washburn <geoffrey.washburn@logicblox.com>
Committer
Geoffrey Washburn <geoffrey.washburn@logicblox.com>
Date

Message

Fix autojump script to support Nix installations

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index 50a694764c9166a5f63bb9caf1cfb4ce0aca51bc..652d22696acfdbb109b185c5baae06ccad2d19c8 100644
 3--- a/plugins/autojump/autojump.plugin.zsh
 4+++ b/plugins/autojump/autojump.plugin.zsh
 5@@ -1,6 +1,8 @@
 6 if [ $commands[autojump] ]; then # check if autojump is installed
 7   if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
 8     . $HOME/.autojump/etc/profile.d/autojump.zsh
 9+  elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installation
10+    . $HOME/.nix-profile/etc/profile.d/autojump.zsh
11   elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
12     . /usr/share/autojump/autojump.zsh
13   elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation