mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Refactor config.fish to use functions moved to functions folder
This commit is contained in:
parent
b5e93105d6
commit
47a88f93d1
10 changed files with 125 additions and 121 deletions
24
.config/fish/functions/define_aliases.fish
Normal file
24
.config/fish/functions/define_aliases.fish
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
function define_aliases -a uname -d 'Defines aliases for commonly used commands'
|
||||
alias cp 'rsync -aP'
|
||||
alias dm 'docker-machine'
|
||||
alias v 'nvim (fzf)'
|
||||
alias vg 'vagrant'
|
||||
alias tf 'terraform'
|
||||
alias tocb 'xclip -in -selection clipboard'
|
||||
alias fromcb 'xclip -out -selection clipboard'
|
||||
alias ssh-rm-host 'ssh-keygen -f ~/.ssh/known_hosts -R'
|
||||
alias wiki 'nvim +VimwikiIndex; and exit'
|
||||
|
||||
switch "$uname"
|
||||
case 'Linux'
|
||||
alias cat 'batcat --theme ansi-dark'
|
||||
alias goland 'command goland'
|
||||
alias rider 'command rider'
|
||||
alias webstorm 'command webstorm'
|
||||
case 'Darwin'
|
||||
alias cat 'bat --theme ansi-dark'
|
||||
alias goland 'open -a Goland'
|
||||
alias rider 'open -a Rider'
|
||||
alias webstorm 'open -a Webstorm'
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue