fish: fix completions

Completion was broken because some variables were resolved at
installation time instead of being added to the script.

Closes #16039.
This commit is contained in:
Kjetil Orbekk 2016-06-07 07:19:11 -04:00 committed by Christoph Hrdinka
parent 7eb906b138
commit 027ca71156

View File

@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
# make fish pick up completions from nix profile
if status --is-interactive
set -l profiles (echo $NIX_PROFILES | ${coreutils}/bin/tr ' ' '\n')
set fish_complete_path $profiles"/share/fish/vendor_completions.d" $fish_complete_path
set fish_complete_path \$profiles"/share/fish/vendor_completions.d" \$fish_complete_path
end
EOF
'';