Add fish completions
Alan Pearce alan@alanpearce.eu
Tue, 22 Aug 2023 07:10:29 +0200
3 files changed, 6 insertions(+), 0 deletions(-)
M user/settings/fish.nix → user/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')"