486e56aba890e143dd02265bcd05ae32751eb55b
- Author
- Brian McKenna <brian@brianmckenna.org>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(autojump): add path for nix per-user (#11935)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index 1b868ee8ddcb37b0517d1bb267f3f96e2d3160f8..84333a89fccc1a115e8a88c63d25885670e33557 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -1,18 +1,19 @@
6 declare -a autojump_paths
7 autojump_paths=(
8- $HOME/.autojump/etc/profile.d/autojump.zsh # manual installation
9- $HOME/.autojump/share/autojump/autojump.zsh # manual installation
10- $HOME/.nix-profile/etc/profile.d/autojump.sh # NixOS installation
11- /run/current-system/sw/share/autojump/autojump.zsh # NixOS installation
12- /usr/share/autojump/autojump.zsh # Debian and Ubuntu package
13- /etc/profile.d/autojump.zsh # manual installation
14- /etc/profile.d/autojump.sh # Gentoo installation
15- /usr/local/share/autojump/autojump.zsh # FreeBSD installation
16- /usr/pkg/share/autojump/autojump.zsh # NetBSD installation
17- /opt/local/etc/profile.d/autojump.sh # macOS with MacPorts
18- /usr/local/etc/profile.d/autojump.sh # macOS with Homebrew (default)
19- /opt/homebrew/etc/profile.d/autojump.sh # macOS with Homebrew (default on M1 macs)
20- /etc/profiles/per-user/$USER/etc/profile.d/autojump.sh # macOS Nix, Home Manager and flakes
21+ $HOME/.autojump/etc/profile.d/autojump.zsh # manual installation
22+ $HOME/.autojump/share/autojump/autojump.zsh # manual installation
23+ $HOME/.nix-profile/etc/profile.d/autojump.sh # NixOS installation
24+ /run/current-system/sw/share/autojump/autojump.zsh # NixOS installation
25+ /etc/profiles/per-user/$USER/share/autojump/autojump.zsh # Home Manager, NixOS with user-scoped packages
26+ /usr/share/autojump/autojump.zsh # Debian and Ubuntu package
27+ /etc/profile.d/autojump.zsh # manual installation
28+ /etc/profile.d/autojump.sh # Gentoo installation
29+ /usr/local/share/autojump/autojump.zsh # FreeBSD installation
30+ /usr/pkg/share/autojump/autojump.zsh # NetBSD installation
31+ /opt/local/etc/profile.d/autojump.sh # macOS with MacPorts
32+ /usr/local/etc/profile.d/autojump.sh # macOS with Homebrew (default)
33+ /opt/homebrew/etc/profile.d/autojump.sh # macOS with Homebrew (default on M1 macs)
34+ /etc/profiles/per-user/$USER/etc/profile.d/autojump.sh # macOS Nix, Home Manager and flakes
35 )
36
37 for file in $autojump_paths; do