summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/fish.nix4
-rw-r--r--user/settings/fish/completions/ecpenv.fish1
-rw-r--r--user/settings/fish/completions/esetenv.fish1
3 files changed, 6 insertions, 0 deletions
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')"