feat(shell/completion): add a custom override for fzf-tab-source

This commit is contained in:
2024-05-21 02:56:29 +01:00
parent 6562df1c19
commit 54aed5d054
2 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
# :fzf-tab:complete:(-command-:|command:option-(v|V)-rest)
case $group in
'external command'|'alias')
which $word
;;
'executable file')
which ${realpath#--*=}
;;
'builtin command'|'reserved word')
run-help $word | bat -lman
;;
parameter)
echo ${(P)word}
;;
esac