Merge pull request #196 from genebean/alias_updates

Update aliases in .zshrc
This commit is contained in:
Gene Liverman 2022-06-20 22:17:44 -04:00 committed by GitHub
commit 16e4e17dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'