add fish shell config
This commit is contained in:
66
.config/fish/config.fish
Normal file
66
.config/fish/config.fish
Normal file
@@ -0,0 +1,66 @@
|
||||
if status is-interactive
|
||||
fish_add_path ~/.cargo/bin
|
||||
fish_add_path ~/.local/bin
|
||||
|
||||
# bat
|
||||
if command -q bat
|
||||
alias cat="bat -pp"
|
||||
end
|
||||
|
||||
# exa
|
||||
if command -q exa
|
||||
alias ls="exa --icons"
|
||||
alias tree="exa --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 --use-on-cd | source
|
||||
fnm completions --shell fish | source
|
||||
end
|
||||
|
||||
# hx
|
||||
if command -q hx
|
||||
alias edit="hx"
|
||||
end
|
||||
|
||||
# kubecolor
|
||||
if command -q kubecolor
|
||||
alias k="kubecolor"
|
||||
alias wk="watch -c kubecolor --force-colors"
|
||||
complete -c kubecolor -w kubectl
|
||||
complete -c k -w kubectl
|
||||
complete -c wk -w kubectl
|
||||
end
|
||||
|
||||
# mvn
|
||||
if command -q mvn
|
||||
alias mvn11="JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 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
|
||||
|
||||
# zoxide
|
||||
if command -q zoxide
|
||||
zoxide init fish | source
|
||||
alias cd="z"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user