all repos — nixfiles @ 847af325e3890c185e3faf26c22b036e2ef75ed7

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

zsh: configure completion for own functions
Alan Pearce alan@alanpearce.eu
Tue, 04 Apr 2023 08:21:26 +0200
commit

847af325e3890c185e3faf26c22b036e2ef75ed7

parent

e727b529dc820a65045fec7ac32054ce3f89dc32

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M user/zsh/zshrcuser/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 @@ ecpenv () {
   esetenv "$1" "${(P)1}"
 }
+compdef '_parameters' ecpenv