2021-07-04 15:54:39 +02:00
|
|
|
#compdef fx
|
|
|
|
|
|
|
|
_fx(){
|
|
|
|
|
|
|
|
local state
|
|
|
|
|
|
|
|
_arguments \
|
|
|
|
'1: :->action'\
|
|
|
|
'*: :->folder_name'
|
|
|
|
|
|
|
|
case $state in
|
|
|
|
(action) _arguments '1:profiles:(s i o)' ;;
|
2023-02-07 17:50:26 +01:00
|
|
|
(*) compadd "$@" $(echo $(find ~/Projects -type d -maxdepth 2 | sed 's/\/home\/max\/Projects\///g') | tr \\n ' ')
|
2021-07-04 15:54:39 +02:00
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
_fx "$@"
|