36f1055eeea0f455676381539fcb3e6e0a4da731
- Author
- Ennio Mara <enniomara@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(autojump): use sh file instead of zsh in NixOS (#11425)
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index 9bc190bdcd7eb08985235c21f403262cadc42d47..1b868ee8ddcb37b0517d1bb267f3f96e2d3160f8 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -1,18 +1,18 @@
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.zsh # 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+ /usr/share/autojump/autojump.zsh # Debian and Ubuntu package
26+ /etc/profile.d/autojump.zsh # manual installation
27+ /etc/profile.d/autojump.sh # Gentoo installation
28+ /usr/local/share/autojump/autojump.zsh # FreeBSD installation
29+ /usr/pkg/share/autojump/autojump.zsh # NetBSD installation
30+ /opt/local/etc/profile.d/autojump.sh # macOS with MacPorts
31+ /usr/local/etc/profile.d/autojump.sh # macOS with Homebrew (default)
32+ /opt/homebrew/etc/profile.d/autojump.sh # macOS with Homebrew (default on M1 macs)
33+ /etc/profiles/per-user/$USER/etc/profile.d/autojump.sh # macOS Nix, Home Manager and flakes
34 )
35
36 for file in $autojump_paths; do