diff --git a/Scripts/bash_aliases b/Scripts/bash_aliases index 2a66b78..68851c6 100644 --- a/Scripts/bash_aliases +++ b/Scripts/bash_aliases @@ -39,7 +39,7 @@ alias dstat="docker stats --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}} # List hosts in .ssh/config -alias hosts="grep 'Host ' ~/.ssh/config | grep '^[[:blank:]]*[^[:blank:]#;]' | awk '{print $2}'" +alias hosts="grep '^[[:blank:]]*[^[:blank:]#;]' ~/.ssh/config | awk '/Host /{print \$2}'" #self define function for git add commit push acp(){