all repos — nixfiles @ 4a22fe0cf6b7c54d67dbf7c45d82fb8d7f330bbf

System and user configuration, managed by nix and home-manager

Add fish completions

Alan Pearce
commit

4a22fe0cf6b7c54d67dbf7c45d82fb8d7f330bbf

parent

b2f6bba3116bdb32e33c1656b0a7865b6ce99719

M user/settings/fish.nixuser/settings/fish.nix
@@ -40,6 +40,10 @@ functions = {
ds = "du -hd1 $argv[1] | sort -h"; }; }; + xdg.configFile."fish/completions" = { + recursive = true; + source = ./fish/completions; + }; xdg.configFile."fish/functions" = { recursive = true; source = ./fish/functions;
A user/settings/fish/completions/ecpenv.fish
@@ -0,0 +1,1 @@
+complete -c ecpenv -x -d "Environment variable" -a "(set -x | string replace ' ' \t'Exported variable')"
A user/settings/fish/completions/esetenv.fish
@@ -0,0 +1,1 @@
+complete -c esetenv -n "__fish_is_nth_token 1" -x -d "Environment variable" -a "(set -x | string replace ' ' \t'Exported variable')"