fish: use -p to prepend profile directories
This commit is contained in:
parent
9daa1838d3
commit
84e25cf478
1 changed files with 6 additions and 9 deletions
|
@ -81,18 +81,15 @@ let
|
|||
# NIX_PROFILES variable (same as config.environment.profiles)
|
||||
set -l __nix_profile_paths (string split ' ' $NIX_PROFILES)[-1..1]
|
||||
|
||||
set __extra_completionsdir \
|
||||
set -p __extra_completionsdir \
|
||||
$__nix_profile_paths"/etc/fish/completions" \
|
||||
$__nix_profile_paths"/share/fish/vendor_completions.d" \
|
||||
$__extra_completionsdir
|
||||
set __extra_functionsdir \
|
||||
$__nix_profile_paths"/share/fish/vendor_completions.d"
|
||||
set -p __extra_functionsdir \
|
||||
$__nix_profile_paths"/etc/fish/functions" \
|
||||
$__nix_profile_paths"/share/fish/vendor_functions.d" \
|
||||
$__extra_functionsdir
|
||||
set __extra_confdir \
|
||||
$__nix_profile_paths"/share/fish/vendor_functions.d"
|
||||
set -p __extra_confdir \
|
||||
$__nix_profile_paths"/etc/fish/conf.d" \
|
||||
$__nix_profile_paths"/share/fish/vendor_conf.d" \
|
||||
$__extra_confdir
|
||||
$__nix_profile_paths"/share/fish/vendor_conf.d"
|
||||
end
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue