add bash config
This commit is contained in:
@@ -17,4 +17,6 @@ dotu() {
|
|||||||
alias ssh='/c/Windows/System32/OpenSSH/ssh.exe'
|
alias ssh='/c/Windows/System32/OpenSSH/ssh.exe'
|
||||||
|
|
||||||
## 列出所有链接
|
## 列出所有链接
|
||||||
alias sls="awk '/^Host / {host=\$2} /HostName/ {print \"\033[36m\" host \"\033[0m\t\033[90m\" \$2 \"\033[0m\"}' ~/.ssh/config | column -t -s $'\t'"
|
sls() {
|
||||||
|
awk '/^Host / {name=$2} /HostName/ {print "\033[36m" name "\033[0m@" $2}' ~/.flinty/ssh/config | column -t -s '@'
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user