[hypnos] 重构 home 下 dotfiles 独立目录结构

This commit is contained in:
2026-01-23 01:20:06 +08:00
parent 2f31fbcd6e
commit 91a6a981c2
14 changed files with 47 additions and 12 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'