fix executable path

This commit is contained in:
ge 2024-10-20 07:26:24 +03:00
parent a836916098
commit 434c8f43dc

View File

@ -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=()