add(bash completion): completion for tip manager
This commit is contained in:
parent
6e9bd6aa12
commit
5dedabeba6
@ -16,6 +16,15 @@ _bkp() {
|
||||
return 0
|
||||
}
|
||||
|
||||
_tip() {
|
||||
local cur opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
opts=$(ls ~/.tips)
|
||||
COMPREPLY=( $(compgen -W "$opts" -- ${cur}) )
|
||||
return 0
|
||||
}
|
||||
|
||||
_workon() {
|
||||
local cur prev envs
|
||||
COMPREPLY=()
|
||||
@ -30,4 +39,5 @@ complete -F _workon workon
|
||||
complete -F _ssh ssh
|
||||
complete -F _ssh sftp
|
||||
complete -F _bkp bkp
|
||||
complete -F _tip tip
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user