481a649f90008e8c45e650fb7127c9c7df0028e8
- Author
- Maximilian Güntner <code@maschinenpsychologe.de>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
NixOS: Use autojump.sh to figure out location of autojump.zsh
Signed-off-by: Maximilian Güntner <code@maschinenpsychologe.de>
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index c0af676317ac3a6e478e0428bbe2d6a4ce1df71d..3946106b016af1b8ecd9ccbb6883c972f175e0d3 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -3,8 +3,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
6 . $HOME/.autojump/etc/profile.d/autojump.zsh
7 elif [ -f $HOME/.autojump/share/autojump/autojump.zsh ]; then # another manual user-local installation
8 . $HOME/.autojump/share/autojump/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 $HOME/.nix-profile/etc/profile.d/autojump.sh ]; then # nix installation
12+ . $HOME/.nix-profile/etc/profile.d/autojump.sh
13 elif [ -f /run/current-system/sw/share/autojump/autojump.zsh ]; then # nixos installation
14 . /run/current-system/sw/share/autojump/autojump.zsh
15 elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package