#!/bin/fish
function l1 --wraps='eza' --description='alias eza'
- switch $(tty)
- case /dev/tty**
+ switch $(tty | cut -f1-3 -d'/')
+ case /dev/tty
EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first -1 $argv
- case /dev/pts/**
- EZA_GRID_ROWS=26 eza -w 0 --group --group-directories-first -1 $argv
+ case /dev/pts
+ EZA_GRID_ROWS=26 eza -w 130 --group --group-directories-first -1 $argv
end
end
function ls --wraps='eza' --description='alias eza'
- switch $(tty)
- case /dev/tty**
- EZA_GRID_ROWS=13 eza -w 155 --group-directories-first --icons $argv
- case /dev/pts/**
- EZA_GRID_ROWS=26 eza -w 155 --group-directories-first --icons $argv
+ switch $(tty | cut -f1-3 -d'/')
+ case /dev/tty
+ EZA_GRID_ROWS=13 eza -w 220 --group-directories-first --icons $argv
+ case /dev/pts
+ EZA_GRID_ROWS=26 eza -w 130 --group-directories-first --icons $argv
end
end
function la --wraps='eza' --description='alias eza'
- switch $(tty)
- case /dev/tty**
+ switch $(tty | cut -f1-3 -d'/')
+ case /dev/tty
EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first --icons -l -a $argv
- case /dev/pts/**
- EZA_GRID_ROWS=26 eza -w 55 --group --group-directories-first --icons -l -a $argv
+ case /dev/pts
+ EZA_GRID_ROWS=26 eza -w 130 --group --group-directories-first --icons -l -a $argv
end
end
function lg --wraps='eza' --description='alias eza'
- switch $(tty)
- case /dev/tty**
+ switch $(tty | cut -f1-3 -d'/')
+ case /dev/tty
EZA_GRID_ROWS=13 eza -w 220 --no-user --long --grid --group-directories-first $argv
- case /dev/pts/**
- EZA_GRID_ROWS=26 eza -w 0 --no-user --long --grid --group-directories-first $argv
+ case /dev/pts
+ EZA_GRID_ROWS=26 eza -w 130 --no-user --long --grid --group-directories-first $argv
end
end
function ll --wraps='eza' --description='alias eza'
- switch $(tty)
- case /dev/tty**
- EZA_GRID_ROWS=26 eza -w 220 --group --group-directories-first --icons -l $argv
- case /dev/pts/**
- EZA_GRID_ROWS=26 eza -w 55 --group --group-directories-first --icons -l $argv
+ switch $(tty | cut -f1-3 -d'/')
+ case /dev/tty
+ EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first --icons -l $argv
+ case /dev/pts
+ EZA_GRID_ROWS=26 eza -w 130 --group --group-directories-first --icons -l $argv
end
end
function lt --wraps='eza' --description='alias eza'
- switch $(tty)
- case /dev/tty**
+ switch $(tty | cut -f1-3 -d'/')
+ case /dev/tty
EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv
- case /dev/pts/**
- EZA_GRID_ROWS=26 eza -w 0 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv
+ case /dev/pts
+ EZA_GRID_ROWS=26 eza -w 130 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv
end
end