bash_completion - update filter path
This commit is contained in:
parent
c7849945c3
commit
11e2cf9f8d
@ -1,7 +1,7 @@
|
||||
function _connect() {
|
||||
COMPREPLY=()
|
||||
local currentWord=${COMP_WORDS[COMP_CWORD]}
|
||||
local completeHosts=$(cat /etc/passwd|grep "/var/www/sites"|cut -d ':' -f 1)
|
||||
local completeHosts=$(cat /etc/passwd|grep "/var/www"|cut -d ':' -f 1)
|
||||
|
||||
COMPREPLY=($(compgen -W "$completeHosts" -- "$currentWord"))
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user