summary refs log tree commit diff
path: root/pkgs/shells/fish
diff options
context:
space:
mode:
authorNathan Zadoks <nathan@nathan7.eu>2016-02-02 02:47:02 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-02-02 06:13:12 +0100
commit1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b (patch)
tree2d2c8951b8a19ced11d561d8c1f3fdf5a0af4e79 /pkgs/shells/fish
parent9468f2c92518002346f5af8c735458688fad3b4e (diff)
downloadnixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.tar
nixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.tar.gz
nixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.tar.bz2
nixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.tar.lz
nixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.tar.xz
nixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.tar.zst
nixpkgs-1072e2bf4df3b34fc50d75c0a1d76bd1fecb180b.zip
fish: don't use manpath(1) from PATH in functions/man.fish
Close #12762.
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r--pkgs/shells/fish/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix
index 1419b180d72..11eeb18661c 100644
--- a/pkgs/shells/fish/default.nix
+++ b/pkgs/shells/fish/default.nix
@@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
   '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
     sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish"
     sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py"
+    sed -i "s|command manpath|command ${man_db}/bin/manpath|" "$out/share/fish/functions/man.fish"
   '' + ''
     sed -i "s|/sbin /usr/sbin||" \
            "$out/share/fish/functions/__fish_complete_subcommand_root.fish"