add bash config

This commit is contained in:
FlintyLemming
2025-12-17 17:38:50 +08:00
parent 263d58b759
commit 2a6c951b56

View File

@@ -17,4 +17,6 @@ dotu() {
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 '@'
}