Fix alias checks

This commit is contained in:
Out Of Ideas 2024-04-02 16:34:19 -05:00
parent 2f3b1674da
commit 2bb3d52e6c
1 changed files with 4 additions and 3 deletions

View File

@ -33,8 +33,6 @@ fi
# Aliases #
###########
alias doas="doas "
alias bat="bat --plain --paging never --theme='Catppuccin-macchiato'"
alias eza="eza --long --icons --git --no-permissions"
alias neofetch="clear && neofetch"
alias fastfetch="clear && fastfetch"
alias audio-dlp="yt-dlp -f \"bestaudio\" --extract-audio --audio-format vorbis"
@ -46,14 +44,17 @@ alias c="cd"
alias e="eza"
# If eza is not installed check if exa is installed, and if that is not installed, alias to ls
if type eza &> /dev/null; then
alias eza="eza --long --icons --git --no-permissions"
alias e="eza"
elif tye exa &> /dev/null; then
elif type exa &> /dev/null; then
alias exa="eza --long --icons --git --no-permissions"
alias e="exa"
else
alias e="ls"
fi
# If bat is not installed, alias to cat
if type bat &> /dev/null; then
alias bat="bat --plain --paging never --theme='Catppuccin-macchiato'"
alias b="bat"
else
alias b="cat"