From 4a22fe0cf6b7c54d67dbf7c45d82fb8d7f330bbf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 22 Aug 2023 07:10:29 +0200 Subject: Add fish completions --- user/settings/fish.nix | 4 ++++ user/settings/fish/completions/ecpenv.fish | 1 + user/settings/fish/completions/esetenv.fish | 1 + 3 files changed, 6 insertions(+) create mode 100644 user/settings/fish/completions/ecpenv.fish create mode 100644 user/settings/fish/completions/esetenv.fish (limited to 'user') diff --git a/user/settings/fish.nix b/user/settings/fish.nix index db3b474a..b548c71c 100644 --- a/user/settings/fish.nix +++ b/user/settings/fish.nix @@ -40,6 +40,10 @@ 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; diff --git a/user/settings/fish/completions/ecpenv.fish b/user/settings/fish/completions/ecpenv.fish new file mode 100644 index 00000000..12cf189e --- /dev/null +++ b/user/settings/fish/completions/ecpenv.fish @@ -0,0 +1 @@ +complete -c ecpenv -x -d "Environment variable" -a "(set -x | string replace ' ' \t'Exported variable')" diff --git a/user/settings/fish/completions/esetenv.fish b/user/settings/fish/completions/esetenv.fish new file mode 100644 index 00000000..d004726e --- /dev/null +++ b/user/settings/fish/completions/esetenv.fish @@ -0,0 +1 @@ +complete -c esetenv -n "__fish_is_nth_token 1" -x -d "Environment variable" -a "(set -x | string replace ' ' \t'Exported variable')" -- cgit 1.4.1