diff --git a/Scripts/bash_aliases b/Scripts/bash_aliases index 561651f..1e75829 100644 --- a/Scripts/bash_aliases +++ b/Scripts/bash_aliases @@ -37,6 +37,10 @@ alias images="docker images" alias dps="docker ps -a --format 'table {{.Names}}\t{{.Status}}\t{{.Size}}\t{{.Ports}}'" alias dstat="docker stats --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}'" + +# List hosts in .ssh/config +alias hosts="grep 'Host ' ~/.ssh/config | grep '^[[:blank:]]*[^[:blank:]#;]' | awk '{print $2}'" + #self define function for git add commit push acp(){ add;