mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-01 22:57:17 -04:00
Improved order completions are served in
Former-commit-id: e1eae46e144920b58c613d5e710d1ee30d3841a7 Former-commit-id: b6e78af74b29add6e63a708bdfc807dfe92c1094
This commit is contained in:
@@ -20,16 +20,16 @@ _sshyp_completions() {
|
|||||||
while read -r; do ITEM=${REPLY// /\\ }; COMPREPLY+=( "$ITEM" ); done < <( compgen -W "$(printf "'%s' " "${trimmed_paths[@]}")" -- "$cur" )
|
while read -r; do ITEM=${REPLY// /\\ }; COMPREPLY+=( "$ITEM" ); done < <( compgen -W "$(printf "'%s' " "${trimmed_paths[@]}")" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
/* )
|
/* )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "add edit copy gen shear" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "add gen edit copy shear" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
add )
|
add )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "folder note password" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password note folder" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
copy )
|
copy )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "note password url username" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
edit )
|
edit )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "note password relocate url username" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note relocate" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
gen )
|
gen )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "update" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "update" -- "$cur" )
|
||||||
|
|||||||
@@ -11,16 +11,16 @@ case ${words[-2]} in
|
|||||||
compadd $trimmed_paths
|
compadd $trimmed_paths
|
||||||
;;
|
;;
|
||||||
/* )
|
/* )
|
||||||
compadd {add,edit,copy,gen,shear}
|
compadd {add,gen,edit,copy,shear}
|
||||||
;;
|
;;
|
||||||
add )
|
add )
|
||||||
compadd {folder,note,password}
|
compadd {password,note,folder}
|
||||||
;;
|
;;
|
||||||
copy )
|
copy )
|
||||||
compadd {note,password,url,username}
|
compadd {password,username,url,note}
|
||||||
;;
|
;;
|
||||||
edit )
|
edit )
|
||||||
compadd {note,password,relocate,url,username}
|
compadd {password,username,url,note,relocate}
|
||||||
;;
|
;;
|
||||||
gen )
|
gen )
|
||||||
compadd update
|
compadd update
|
||||||
|
|||||||
Reference in New Issue
Block a user