]> Freerunner's - dotfiles.git/commitdiff
fish: update eza aliases
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 27 Oct 2025 22:23:33 +0000 (23:23 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 27 Oct 2025 22:23:33 +0000 (23:23 +0100)
dot-config/fish/functions/eza-aliases.fish

index 3bc61aeab430d6d286f24402a2039644cb4676fc..ab248ea9b4888d765717f4ae4de1f222e901011f 100644 (file)
@@ -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