From 6f2175ac1a397408e97fe6a4b670e42bad41e381 Mon Sep 17 00:00:00 2001 From: evanchen Date: Wed, 13 Sep 2023 04:31:15 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Scripts/bash=5Faliases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/bash_aliases | 4 ++++ 1 file changed, 4 insertions(+) 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;