addet universal install alias 'install_pkg'
This commit is contained in:
parent
a991f65227
commit
03a388f509
2 changed files with 33 additions and 17 deletions
12
.completions/ssh
Normal file
12
.completions/ssh
Normal file
|
@ -0,0 +1,12 @@
|
|||
_ssh()
|
||||
{
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
opts=$(grep '^Host' ~/.ssh/config ~/.ssh/config.d/* 2>/dev/null | grep -v '[?*]' | cut -d ' ' -f 2-)
|
||||
|
||||
COMPREPLY=( $(compgen -W "$opts" -- ${cur}) )
|
||||
return 0
|
||||
}
|
||||
complete -F _ssh ssh
|
Loading…
Add table
Add a link
Reference in a new issue