fix executable path
This commit is contained in:
parent
a836916098
commit
434c8f43dc
@ -11,13 +11,13 @@ _pt_completions()
|
|||||||
;;
|
;;
|
||||||
-l|-label)
|
-l|-label)
|
||||||
if [[ ${COMP_WORDS[*]} =~ start ]]; then
|
if [[ ${COMP_WORDS[*]} =~ start ]]; then
|
||||||
COMPREPLY+=($(compgen -W "$(./pt labels)" -- "$cur"))
|
COMPREPLY+=($(compgen -W "$(pt labels)" -- "$cur"))
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
local words=($(./pt ls -o brief) start stop signal)
|
local words=($(pt ls -o brief) start stop signal)
|
||||||
if [[ ${words[*]} =~ $prev ]]; then
|
if [[ ${words[*]} =~ $prev ]]; then
|
||||||
COMPREPLY+=($(compgen -W "$(./pt ls -o brief)" -- "$cur"))
|
COMPREPLY+=($(compgen -W "$(pt ls -o brief)" -- "$cur"))
|
||||||
fi
|
fi
|
||||||
local commands='start stop ls ps help version signal labels'
|
local commands='start stop ls ps help version signal labels'
|
||||||
local invoked=()
|
local invoked=()
|
||||||
|
Loading…
Reference in New Issue
Block a user