Add conditional logic for native command overwrites

This commit is contained in:
Caleb Braaten 2024-07-03 15:22:42 -07:00
parent d2bdf423a3
commit ffaafb4533

View File

@ -9,12 +9,11 @@ eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
# ---- Native Command Overwrites ---- # ---- Native Command Overwrites ----
alias vi="nvim" /usr/bin/which -s nvim && alias vi="nvim" && alias vim="nvim" || echo "nvim not found, falling back to vi"
alias vim="nvim" /usr/bin/which -s bat && alias cat="bat" || echo "bat not found, falling back to cat"
alias cat="bat" /usr/bin/which -s fd && alias find="fd -H" || echo "fd not found, falling back to find"
alias find="fd -H" /usr/bin/which -s zoxide && alias cd="z" || echo "zoxide not found, falling back to cd"
alias ls="eza --color=always --git --no-filesize --icons=always --no-time --no-user --no-permissions" /usr/bin/which -s eza && alias ls="eza --color=always --git --no-filesize --icons=always --no-time --no-user --no-permissions" || echo "eza not found, falling back to ls"
alias cd="z"
# ---- SSH Shortcuts ---- # ---- SSH Shortcuts ----
alias pandora="ssh root@pandora.cortex.io" alias pandora="ssh root@pandora.cortex.io"