85 lines
1.6 KiB
Fish
85 lines
1.6 KiB
Fish
if status is-interactive
|
|
fish_add_path ~/.cargo/bin
|
|
fish_add_path ~/.local/bin
|
|
|
|
if command -q atuin
|
|
atuin init fish --disable-up-arrow | source
|
|
atuin gen-completions --shell fish | source
|
|
end
|
|
|
|
if command -q avp
|
|
avp completion fish | source
|
|
end
|
|
|
|
# bat
|
|
if command -q bat
|
|
alias cat="bat -pp"
|
|
end
|
|
|
|
# eza
|
|
if command -q eza
|
|
alias ls="eza --icons"
|
|
alias tree="eza --icons --tree"
|
|
end
|
|
|
|
alias l="ls -l"
|
|
alias ll="ls -la"
|
|
|
|
# fd
|
|
if command -q fdfind
|
|
alias fd="fdfind"
|
|
end
|
|
|
|
# fnm
|
|
if command -q fnm
|
|
fnm env | source
|
|
fnm completions --shell fish | source
|
|
end
|
|
|
|
# hx
|
|
if command -q hx
|
|
alias edit="hx"
|
|
else if command -q helix
|
|
alias edit="helix"
|
|
end
|
|
|
|
# kubectl
|
|
if command -q kubectl
|
|
alias k="kubectl"
|
|
if command -q viddy
|
|
alias wk="viddy kubectl"
|
|
else
|
|
alias wk="watch -c kubectl"
|
|
end
|
|
complete -c k -w kubectl
|
|
complete -c wk -w kubectl
|
|
end
|
|
|
|
# mvn
|
|
if command -q mvn
|
|
alias mvn17="JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 mvn"
|
|
alias mvn21="JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 mvn"
|
|
end
|
|
|
|
# rgit
|
|
if command -q rgit
|
|
complete -c rgit -w git
|
|
end
|
|
|
|
# starship
|
|
if command -q starship
|
|
starship init fish | source
|
|
end
|
|
|
|
# viddy
|
|
if command -q viddy
|
|
alias watch="viddy"
|
|
end
|
|
|
|
# zoxide
|
|
if command -q zoxide
|
|
zoxide init fish | source
|
|
alias cd="z"
|
|
end
|
|
end
|