diff --git a/doc/package-notes.xml b/doc/package-notes.xml
index 4148e87e018..f0015a7f9ac 100644
--- a/doc/package-notes.xml
+++ b/doc/package-notes.xml
@@ -366,4 +366,20 @@ it. Place the resulting package.nix file into
+
+
+Autojump
+
+
+ autojump needs the shell integration to be useful but unlike other systems,
+ nix doesn't have a standard share directory location. This is why a
+ autojump-share script is shipped that prints the location
+ of the shared folder. This can then be used in the .bashrc like this:
+
+ source "$(autojump-share)/autojump.bash"
+
+
+
+
+
diff --git a/pkgs/tools/misc/autojump/default.nix b/pkgs/tools/misc/autojump/default.nix
index 3bd44fb07b7..f0dfee7882a 100644
--- a/pkgs/tools/misc/autojump/default.nix
+++ b/pkgs/tools/misc/autojump/default.nix
@@ -22,9 +22,13 @@ in
mkdir -p "$out/etc/bash_completion.d"
cp -v $out/share/autojump/autojump.bash "$out/etc/bash_completion.d"
- # FIXME: What's the right place for `autojump.zsh'?
- # This can be used as a workaround in .zshrc:
- # . $HOME/.nix-profile/share/autojump/autojump.zsh
+ cat <