[zsh] 集成 zsh 配置

This commit is contained in:
2026-01-18 19:54:11 +08:00
parent 3600124906
commit 05138184df
13 changed files with 4310 additions and 13 deletions
+24
View File
@@ -0,0 +1,24 @@
# From https://serverfault.com/a/1064320
ssh2config() {
host="$(ssh -G "$@" | sed -n 's/^hostname //p')"
echo "$host"
comm -23 <(ssh -G "$@" | sort) <(ssh -G abcddd | sort) | sed 's/^/ /'
echo ''
}
backlight() {
#echo $1 | sudo tee /sys/class/backlight/intel_backlight/brightness
echo $1 | sudo tee /sys/class/backlight/amdgpu_bl1/brightness
}
gpg-login() {
export GPG_TTY=$(tty)
echo "test" | gpg --clearsign > /dev/null 2>&1
}
alias ipy='ipython'
alias ts4='tailscale ip -4'
alias ts6='tailscale ip -6'
alias x='atool -x'
alias pc='proxychains'