diff options
author | Alan Pearce | 2023-04-04 08:21:26 +0200 |
---|---|---|
committer | Alan Pearce | 2023-04-04 08:21:26 +0200 |
commit | 847af325e3890c185e3faf26c22b036e2ef75ed7 (patch) | |
tree | 5587baa0205133b3468e22e064e35a8cfd01c6d0 | |
parent | e727b529dc820a65045fec7ac32054ce3f89dc32 (diff) | |
download | nixfiles-847af325e3890c185e3faf26c22b036e2ef75ed7.tar.lz nixfiles-847af325e3890c185e3faf26c22b036e2ef75ed7.tar.zst nixfiles-847af325e3890c185e3faf26c22b036e2ef75ed7.zip |
zsh: configure completion for own functions
-rw-r--r-- | user/zsh/zshrc | 2 |
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 |