From 847af325e3890c185e3faf26c22b036e2ef75ed7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 4 Apr 2023 08:21:26 +0200 Subject: zsh: configure completion for own functions --- user/zsh/zshrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'user/zsh') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index dce20aeb..48cfc1ef 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -151,6 +151,7 @@ add_project () { project=${1:-$PWD} emacsclient -e "(projectile-add-known-project \"${project}\")" } +compdef '_path_files -/' add_project esetenv () { emacsclient -e "(setenv \"$1\" \"$2\")" @@ -159,3 +160,4 @@ esetenv () { ecpenv () { esetenv "$1" "${(P)1}" } +compdef '_parameters' ecpenv -- cgit 1.4.1