From: Andre Ramnitz Date: Mon, 27 Oct 2025 22:23:33 +0000 (+0100) Subject: fish: update eza aliases X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=57d8497b699632266399d7def808f24bda814fa6;p=dotfiles.git fish: update eza aliases --- diff --git a/dot-config/fish/functions/eza-aliases.fish b/dot-config/fish/functions/eza-aliases.fish index 3bc61aea..ab248ea9 100644 --- a/dot-config/fish/functions/eza-aliases.fish +++ b/dot-config/fish/functions/eza-aliases.fish @@ -5,7 +5,7 @@ function l1 --wraps='eza' --description='alias eza' case /dev/tty EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --group --group-directories-first -1 $argv case /dev/pts - EZA_ICON_SPACING=2 COLUMNS=180 EZA_GRID_ROWS=26 eza --group --group-directories-first -1 $argv + EZA_ICON_SPACING=2 COLUMNS=(tput cols) EZA_GRID_ROWS=26 eza --group --group-directories-first -1 $argv end end @@ -14,25 +14,25 @@ function ls --wraps='eza' --description='alias eza' case /dev/tty EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --group-directories-first --icons $argv case /dev/pts - EZA_ICON_SPACING=2 COLUMNS=180 EZA_GRID_ROWS=26 eza --group-directories-first --icons $argv + EZA_ICON_SPACING=2 COLUMNS=(tput cols) EZA_GRID_ROWS=26 eza --group-directories-first --icons $argv end end function la --wraps='eza' --description='alias eza' switch (tty | cut -f1-3 -d'/') case /dev/tty - EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --group --group-directories-first --icons -l -a $argv + EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza -a --group --group-directories-first --icons -l $argv case /dev/pts - EZA_ICON_SPACING=2 COLUMNS=180 EZA_GRID_ROWS=26 eza --group --group-directories-first --icons -l -a $argv + EZA_ICON_SPACING=2 COLUMNS=(tput cols) EZA_GRID_ROWS=26 eza -a --group --group-directories-first --icons -l $argv end end function lg --wraps='eza' --description='alias eza' switch (tty | cut -f1-3 -d'/') case /dev/tty - EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --no-user --long --grid --group-directories-first $argv + EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --long --no-user --smart-group --group-directories-first --git $argv case /dev/pts - EZA_ICON_SPACING=2 COLUMNS=180 EZA_GRID_ROWS=26 eza --no-user --long --grid --group-directories-first $argv + EZA_ICON_SPACING=2 COLUMNS=(tput cols) EZA_GRID_ROWS=26 eza --long --no-user --smart-group --group-directories-first --git $argv end end @@ -41,7 +41,7 @@ function ll --wraps='eza' --description='alias eza' case /dev/tty EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --group --group-directories-first --icons -l $argv case /dev/pts - EZA_ICON_SPACING=2 COLUMNS=180 EZA_GRID_ROWS=26 eza --group --group-directories-first --icons -l $argv + EZA_ICON_SPACING=2 COLUMNS=(tput cols) EZA_GRID_ROWS=26 eza --group --group-directories-first --icons -l $argv end end @@ -50,6 +50,6 @@ function lt --wraps='eza' --description='alias eza' case /dev/tty EZA_ICON_SPACING=2 COLUMNS=160 EZA_GRID_ROWS=13 eza --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv case /dev/pts - EZA_ICON_SPACING=2 COLUMNS=180 EZA_GRID_ROWS=26 eza --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv + EZA_ICON_SPACING=2 COLUMNS=(tput cols) EZA_GRID_ROWS=26 eza --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv end end