mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
feat(shell/completion): add a custom override for fzf-tab-source
This commit is contained in:
15
zsh/fzf-tab/sources/-command-.zsh
Normal file
15
zsh/fzf-tab/sources/-command-.zsh
Normal 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
|
||||
Reference in New Issue
Block a user