Skip to content

Instantly share code, notes, and snippets.

@AppleBoiy
Last active November 17, 2024 17:14
Show Gist options
  • Save AppleBoiy/04a249b6f64fd0fe1744aff759a0563b to your computer and use it in GitHub Desktop.
Save AppleBoiy/04a249b6f64fd0fe1744aff759a0563b to your computer and use it in GitHub Desktop.
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

alias ls='eza'
alias l='eza -lbF --git'
alias ll='eza -lbGF --git'
alias llm='eza -lbGd --git --sort=modified'
alias la='eza -lbhHigUmuSa --time-style=long-iso --git --color-scale'
alias lx='eza -lbhHigUmuSa@ --time-style=long-iso --git --color-scale'

# specialty views
alias lS='eza -1'
alias lt='eza --tree --level=2'
alias l.="eza -a | grep -E '^\.'"

Advance

alias ls='eza --color=always --group-directories-first --icons'
alias ll='eza -la --icons --octal-permissions --group-directories-first'
alias l='eza -bGF --header --git --color=always --group-directories-first --icons'
alias llm='eza -lbGd --header --git --sort=modified --color=always --group-directories-first --icons' 
alias la='eza --long --all --group --group-directories-first'
alias lx='eza -lbhHigUmuSa@ --time-style=long-iso --git --color-scale --color=always --group-directories-first --icons'

alias lS='eza -1 --color=always --group-directories-first --icons'
alias lt='eza --tree --level=2 --color=always --group-directories-first --icons'
alias l.="eza -a | grep -E '^\.'"

then source

source ~/.zshrc #or .bashrc for bash shell
@Jacinto27
Copy link

Nice, thanks for sharing 🥇

@AppleBoiy
Copy link
Author

my pleasure💪🏻

@aaronedev
Copy link

yea good thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment