1e027509d840d0d2a2fee1001543a5f2f34b3c28
- Author
- Wenzheng Jiang <jwzh.hi@gmail.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Add nixos support for autojump plugin (#6365)
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index c05c699e106b56ec04278d4cd84d7a4176fd9c35..7339fad9ebeb83893074c1ccecb748ddc0ee3fbe 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -5,6 +5,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
6 . $HOME/.autojump/share/autojump/autojump.zsh
7 elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installation
8 . $HOME/.nix-profile/etc/profile.d/autojump.zsh
9+ elif [ -f /run/current-system/sw/share/autojump/autojump.zsh ]; then # nixos installation
10+ . /run/current-system/sw/share/autojump/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