diff options
| author | Pavel Egorov <[email protected]> | 2025-11-07 02:25:46 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-11-07 02:25:46 +0300 |
| commit | 6318cbe28c5bdad7f05cb29dd329dfc94ca8c3e7 (patch) | |
| tree | c1e2c1caba9c5f6e8cb9decd30fd6fe726c296f3 /.config/fish/conf.d | |
| parent | e8b9b44f7823db988af04b157ac6a0b4599282a9 (diff) | |
| download | dotfiles-6318cbe28c5bdad7f05cb29dd329dfc94ca8c3e7.tar.gz dotfiles-6318cbe28c5bdad7f05cb29dd329dfc94ca8c3e7.zip | |
[fish] change ls aliases to regular function definitions
Diffstat (limited to '')
| -rw-r--r-- | .config/fish/conf.d/alias.fish | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.config/fish/conf.d/alias.fish b/.config/fish/conf.d/alias.fish index 64bac90..b1383a2 100644 --- a/.config/fish/conf.d/alias.fish +++ b/.config/fish/conf.d/alias.fish | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | # ls & alternatives | 1 | # ls & alternatives |
| 2 | if type -q eza | 2 | if type -q eza |
| 3 | alias ls "eza --long --almost-all --binary --smart-group --group-directories-first --git --git-repos --color=auto --icons=never" | 3 | function ls --wraps eza |
| 4 | alias lss "ls --total-size" | 4 | eza --long --almost-all --binary --smart-group --group-directories-first --git --git-repos --color=auto --icons=never |
| 5 | end | ||
| 6 | |||
| 7 | function lss --wraps eza --description "ls with total dir size" | ||
| 8 | ls --total-size | ||
| 9 | end | ||
| 5 | end | 10 | end |
| 11 | |||
