3
0
Fork 0
forked from mirrors/nixpkgs

nixos/fish: prevent fish from generating completions on first run

This commit is contained in:
hyperfekt 2020-04-28 14:05:28 +02:00
parent 7c399a4ee0
commit c0fe9d609d

View file

@ -178,6 +178,10 @@ in
set -l post (string join0 $fish_complete_path | string match --regex "[^\x00]*generated_completions.*" | string split0 | string match -er ".")
set fish_complete_path $prev "/etc/fish/generated_completions" $post
end
# prevent fish from generating completions on first run
if not test -d $__fish_user_data_dir/generated_completions
${pkgs.coreutils}/bin/mkdir $__fish_user_data_dir/generated_completions
end
'';
environment.etc."fish/generated_completions".source =