feat: add autocomplete to fx command
This commit is contained in:
19
completions/_fx
Executable file
19
completions/_fx
Executable file
@ -0,0 +1,19 @@
|
||||
#compdef fx
|
||||
|
||||
_fx(){
|
||||
|
||||
local state
|
||||
|
||||
_arguments \
|
||||
'1: :->action'\
|
||||
'*: :->folder_name'
|
||||
|
||||
case $state in
|
||||
(action) _arguments '1:profiles:(s i o)' ;;
|
||||
(*) compadd "$@" $(echo $(ls ~/SYNC) | tr \\n ' ')
|
||||
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
_fx "$@"
|
Reference in New Issue
Block a user