summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-04-04 08:21:26 +0200
committerAlan Pearce2023-04-04 08:21:26 +0200
commit847af325e3890c185e3faf26c22b036e2ef75ed7 (patch)
tree5587baa0205133b3468e22e064e35a8cfd01c6d0 /user
parente727b529dc820a65045fec7ac32054ce3f89dc32 (diff)
downloadnixfiles-847af325e3890c185e3faf26c22b036e2ef75ed7.tar.lz
nixfiles-847af325e3890c185e3faf26c22b036e2ef75ed7.tar.zst
nixfiles-847af325e3890c185e3faf26c22b036e2ef75ed7.zip
zsh: configure completion for own functions
Diffstat (limited to 'user')
-rw-r--r--user/zsh/zshrc2
1 files changed, 2 insertions, 0 deletions
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