From 77f612bce2df081b139a2ac0b1e4475d7dd15f1d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 23 Jun 2022 21:16:12 -0500 Subject: [PATCH] Enable an lA alias to show . and .. directories --- common/fish/functions.fish | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/common/fish/functions.fish b/common/fish/functions.fish index 9a06b0f..81d9c85 100644 --- a/common/fish/functions.fish +++ b/common/fish/functions.fish @@ -2,8 +2,12 @@ function has_command --wraps=command --description "Exits non-zero if the given command --quiet --search $argv[1] end +alias ll 'ls -l' +alias la 'll --all' +alias lA 'la --all' + if has_command exa - alias ls 'exa --group-directories-first' + alias ls 'exa --group-directories-first --classify' alias l ls alias tree 'ls --tree --level=3' alias lt 'll --sort=modified' @@ -11,12 +15,9 @@ if has_command exa alias lc 'lt --sort=accessed' alias lT 'lt --reverse' alias lC 'lc --reverse' + alias lD 'la --only-dirs' end -alias lA 'ls --all' -alias ll 'ls -l' -alias la 'll --all' - function scount --wraps=count --description "Silent count exits with a non-zero status if no arguments given to count" count $argv > /dev/null end -- 2.44.0