mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
initial commit
This commit is contained in:
commit
b5febd4395
11 changed files with 861 additions and 0 deletions
37
home-manager/modules/fish/conf.d/20_alias.fish
Normal file
37
home-manager/modules/fish/conf.d/20_alias.fish
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
if type -q nvim
|
||||
alias vim nvim
|
||||
end
|
||||
|
||||
if type -q docker
|
||||
abbr d "docker"
|
||||
end
|
||||
|
||||
if type -q docker-compose
|
||||
abbr dc "docker-compose"
|
||||
end
|
||||
|
||||
if type -q snap
|
||||
set PYCHARM_SNAP (snap list | grep 'pycharm' | awk '{ print $1 }')
|
||||
set HELM_SNAP (snap list | grep 'helm' | awk '{ print $1 }')
|
||||
if test -n "$HELM_SNAP"
|
||||
alias helm "snap run $HELM_SNAP"
|
||||
end
|
||||
if test -n "$PYCHARM_SNAP"
|
||||
alias pycharm "snap run $PYCHARM_SNAP"
|
||||
end
|
||||
end
|
||||
|
||||
if type -q to
|
||||
abbr z "to"
|
||||
end
|
||||
|
||||
if type -q broot
|
||||
abbr br "broot"
|
||||
end
|
||||
|
||||
if type -q terraform
|
||||
abbr tf "terraform"
|
||||
abbr tfp "terraform plan"
|
||||
abbr tfa "terraform apply"
|
||||
abbr tfi "terraform init"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue