initial commit

This commit is contained in:
Ludovic Cartier
2024-11-08 16:14:46 +01:00
parent 79cc857a46
commit c7849945c3
5 changed files with 97 additions and 0 deletions

10
files/bash_completion Normal file
View File

@ -0,0 +1,10 @@
function _connect() {
COMPREPLY=()
local currentWord=${COMP_WORDS[COMP_CWORD]}
local completeHosts=$(cat /etc/passwd|grep "/var/www/sites"|cut -d ':' -f 1)
COMPREPLY=($(compgen -W "$completeHosts" -- "$currentWord"))
return 0
}
complete -F _connect groot