Skip to content

Commit

Permalink
Add conditional alias for exa
Browse files Browse the repository at this point in the history
Exa seems to not being supported on Intel machines anymore :-(
  • Loading branch information
Blackjacx committed Feb 22, 2024
1 parent f294cc9 commit e56f33f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bootstrap/zsh_config_files/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,15 @@ alias twm="timew month summary :ids rc.reports.month.hours=auto"
# File System
#-------------------------------------------------------------------------------
alias df="df -h"
alias la="exa -laFh"
alias tree="exa --tree"

if command -v lokalise2 >/dev/null 2>&1; then
alias la="exa -laFh"
alias tree="exa --tree"
else
alias la="ls -laFh"
alias tree="ls --tree"
fi

if command -v bat > /dev/null 2>&1; then
alias cat="bat --paging=never"
elif command -v batcat > /dev/null 2>&1; then
Expand Down

0 comments on commit e56f33f

Please sign in to comment.