Skip to content

Instantly share code, notes, and snippets.

@PranavSK
Created March 23, 2021 06:04
Show Gist options
  • Save PranavSK/6636bf5a7fb7cc7c80a647edc510a4b4 to your computer and use it in GitHub Desktop.
Save PranavSK/6636bf5a7fb7cc7c80a647edc510a4b4 to your computer and use it in GitHub Desktop.
function exa
command exa --git --group-directories-first --sort=name $argv
end
function l -d 'list files with exa' -w exa
command exa -l --group-directories-first --git $argv
end
function la -d 'list files (with hidden) using exa' -w exa
command exa -l --group-directories-first --git -a $argv
end
function ld -d 'list directories only using exa' -w exa
command exa -l --group-directories-first --git --only-dirs $argv
end
function ll -d 'long list files in directory recursively as tree with exa' -w exa
command exa -lT --group-directories-first --git --level 4 --color always $argv | bat -p
end
function lr -d 'list files (most recent in bottom) with exa' -w exa
command exa -l --group-directories-first --git --sort newest $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment