Skip to content

Commit

Permalink
fix(eza): remove --git if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
natelandau committed May 17, 2024
1 parent a753714 commit 79144cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dotfiles/dot_shell/sourced/060-common_aliases.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ alias numfiles='echo $(ls -1 | wc -l)' # Count of non-hidden files in current di
alias ls='eza --git --icons=auto'

# List filenames with long format
alias l='eza -l --classify=auto --git --icon=autos'
alias l='eza -l --classify=auto --icon=autos {{- if not (and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arch64")) }} --git{{ end }}'

# List all files
alias ll='eza -lah --classify=auto --git --icons=auto'
alias ll='eza -lah --classify=auto --icons=auto {{- if not (and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arch64")) }} --git{{ end }}'

# List files by last modified
alias llm='ll --sort=modified'

# List files with attributes
alias la='eza -lbhHigUmuSa --git --icons=auto'
alias la='eza -lbhHigUmuSa --icons=auto {{- if not (and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arch64")) }} --git{{ end }}'

# List files with extended attributes
alias lx='eza -lbhHigUmuSa@ --git --icons=auto'
alias lx='eza -lbhHigUmuSa@ --icons=auto {{- if not (and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arch64")) }} --git{{ end }}'

# List files in a tree view
alias lt='eza --tree --level=2 --icons=auto'
Expand Down

0 comments on commit 79144cd

Please sign in to comment.