♻️ refactor: Seperate eza functions

This commit is contained in:
punkfairie 2024-02-17 20:46:10 -08:00
parent 9dbd2fd3f5
commit 9eda040593
4 changed files with 34 additions and 13 deletions

View file

@ -49,16 +49,3 @@ end
function cdls -d "CD into a directory and list its contents" function cdls -d "CD into a directory and list its contents"
cd "$argv" && ls cd "$argv" && ls
end end
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# eza.
function ls --wraps eza
eza --all --icons=auto --sort=name --group-directories-first $argv
end
function lsl --wraps eza
eza --all --icons=auto --sort=name --group-directories-first --grid --long \
--git --header $argv
end

View file

@ -0,0 +1,18 @@
#!/usr/bin/env fish
function ls --wraps eza
eza --all --icons=auto --sort=name --group-directories-first $argv
end
function lst --wraps eza
ls --tree $argv
end
function lsl --wraps eza
eza --all --icons=auto --sort=name --group-directories-first --grid --long \
--git --header $argv
end
function lslt --wraps eza
lsl --tree $argv
end

View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
function lzg --wraps=lazygit
set -f configs "$HOME/.config/lazygit/config.yml,$HOME/.themes/lazygit/catppuccin/themes-mergable/macchiato/pink.yml"
if test "$(pwd)" = "$HOME"
lazygit --use-config-file="$configs" --work-tree="$HOME" --git-dir="$HOME/.dot"
else
lazygit --use-config-file="$configs"
end
end

View file

@ -0,0 +1,5 @@
#!/usr/bin/env fish
fish_add_path "$HOME/.volta/bin"
set -gx VOLTA_HOME "$HOME/.volta"