Update aliases in .zshrc

This commit is contained in:
Gene Liverman 2022-06-20 22:14:39 -04:00
parent 0ac39456a5
commit 4d57dc6657
No known key found for this signature in database
GPG key ID: 3AF83985B6C857C6

View file

@ -119,16 +119,23 @@ alias pssh='ssh -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no"
alias sal='ssh-add -L' alias sal='ssh-add -L'
alias st='open -a SourceTree' alias st='open -a SourceTree'
alias sz='source ~/.zshrc' alias sz='source ~/.zshrc'
alias ykey='pkill gpg-agent && source ~/.zshrc; ssh-add -L'
# aliases whose command changes based on OS
if [[ `uname` == 'Linux' ]]; then
alias ykey='sudo systemctl restart pcscd && sudo pkill -9 gpg-agent && source ~/.zshrc; ssh-add -L'
else
alias ykey='pkill -9 gpg-agent && source ~/.zshrc; ssh-add -L'
fi
## Linux-only aliases ## Linux-only aliases
if [[ `uname` == 'Linux' ]]; then if [[ `uname` == 'Linux' ]]; then
alias enable-ruby-27='source ~/enable-ruby-27'
alias pbcopy='xclip -selection clipboard' alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o' alias pbpaste='xclip -selection clipboard -o'
alias uwgroute='nmcli connection modify SecureWest ipv4.route-metric 20; nmcli radio wifi off; nmcli radio wifi on'
alias uwgforget='nmcli connection delete SecureWest'
fi fi
if [[ `uname` != 'Linux' ]]; then if [[ `uname` != 'Linux' ]]; then
function otpon() { function otpon() {
osascript -e 'tell application "yubiswitch" to KeyOn' osascript -e 'tell application "yubiswitch" to KeyOn'