mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Merge pull request #7132 from stelcodes/fix-fish-manpath
Fix fish shell MANPATH creation
This commit is contained in:
commit
a324e9a5c8
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ if test -n "$HOME" && test -n "$USER"
|
|||
# Only use MANPATH if it is already set. In general `man` will just simply
|
||||
# pick up `.nix-profile/share/man` because is it close to `.nix-profile/bin`
|
||||
# which is in the $PATH. For more info, run `manpath -d`.
|
||||
set --export --prepend --path MANPATH "$NIX_LINK/share/man"
|
||||
if set --query MANPATH
|
||||
set --export --prepend --path MANPATH "$NIX_LINK/share/man"
|
||||
end
|
||||
|
||||
fish_add_path --prepend --global "$NIX_LINK/bin"
|
||||
set --erase NIX_LINK
|
||||
|
|
Loading…
Reference in a new issue