Added WSL specific keychain and tmux alias

This commit is contained in:
2023-03-09 15:26:17 +01:00
parent 8d98ba4db5
commit 447abcb60b
2 changed files with 22 additions and 0 deletions

15
.termrc
View File

@@ -2,6 +2,11 @@
# Load personal aliases
source "$HOME/.aliases"
# Load tmux aliases if found
if [ -e $HOME/.tmux/.tmux-aliases ] ; then
source $HOME/.tmux/.tmux-aliases
fi
# Fix linker errors with gtk3 -- removed since I nuked gtk-nocsd
#export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
@@ -17,3 +22,13 @@ export LANGUAGE="en_US.UTF-8"
# Decompress raw zlib files (.dat)
zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc)
# Run WSL-specific inits
if [ -n WSLENV ] ; then
printf '\e[34m [termrc] Running on WSL\e[0m\n'
# Load SSH keychain
/usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa
source $HOME/.keychain/$HOST-sh
fi

7
tmux/.tmux/.tmux-aliases Normal file
View File

@@ -0,0 +1,7 @@
alias ta='tmux attach'
alias tls='tmus ls'
alias tnw='tmux new-window'
alias tn='tnw'
alias tsv='tmux split-window -v'
alias tsh='tmux split-window -h'
alias trn='tmux rename-window'