2020-08-09 22:59:14 +00:00
|
|
|
function define_aliases -a uname -d 'Defines aliases for commonly used commands'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias rcp 'rsync -aP'
|
2020-08-09 22:59:14 +00:00
|
|
|
alias dm 'docker-machine'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias v 'nvim +FZF'
|
2020-08-09 22:59:14 +00:00
|
|
|
alias vg 'vagrant'
|
|
|
|
alias tf 'terraform'
|
|
|
|
alias tocb 'xclip -in -selection clipboard'
|
|
|
|
alias fromcb 'xclip -out -selection clipboard'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias ssh-rm 'ssh-keygen -f ~/.ssh/known_hosts -R'
|
2020-08-11 16:16:26 +00:00
|
|
|
alias wiki 'nvim +VimwikiIndex'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias ssh-a 'ssh-add ~/.secrets/id_ed25519'
|
|
|
|
alias age-p 'age --armor --passphrase'
|
|
|
|
alias age-d 'age --decrypt --identity ~/.secrets/id_ed25519'
|
|
|
|
alias age-e 'age --armor --recipient (cat ~/.secrets/id_ed25519.pub)'
|
|
|
|
alias age-k 'age --decrypt --identity ~/.secrets/id_ed25519 ~/.secrets/age_keys.age'
|
2020-08-09 22:59:14 +00:00
|
|
|
|
|
|
|
switch "$uname"
|
|
|
|
case 'Linux'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias bat 'batcat --theme ansi-dark'
|
|
|
|
alias goland 'command goland'
|
|
|
|
alias rider 'command rider'
|
2020-08-09 22:59:14 +00:00
|
|
|
alias webstorm 'command webstorm'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias sctl 'sudo systemctl'
|
2020-08-09 22:59:14 +00:00
|
|
|
case 'Darwin'
|
2020-10-31 22:13:25 +00:00
|
|
|
alias bat 'bat --theme ansi-dark'
|
|
|
|
alias goland 'open -a Goland'
|
|
|
|
alias rider 'open -a Rider'
|
2020-08-09 22:59:14 +00:00
|
|
|
alias webstorm 'open -a Webstorm'
|
|
|
|
end
|
|
|
|
end
|