mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
nixos/fish: prevent fish from generating completions on first run
This commit is contained in:
parent
7c399a4ee0
commit
c0fe9d609d
1 changed files with 4 additions and 0 deletions
|
@ -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 -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
|
set fish_complete_path $prev "/etc/fish/generated_completions" $post
|
||||||
end
|
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 =
|
environment.etc."fish/generated_completions".source =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue