♻️ refactor: Seperate eza functions
This commit is contained in:
parent
9dbd2fd3f5
commit
9eda040593
4 changed files with 34 additions and 13 deletions
|
@ -49,16 +49,3 @@ end
|
|||
function cdls -d "CD into a directory and list its contents"
|
||||
cd "$argv" && ls
|
||||
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
|
||||
|
|
18
.config/fish/conf.d/30-eza.fish
Normal file
18
.config/fish/conf.d/30-eza.fish
Normal 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
|
11
.config/fish/conf.d/30-lazygit.fish
Normal file
11
.config/fish/conf.d/30-lazygit.fish
Normal 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
|
5
.config/fish/conf.d/30-volta.fish
Normal file
5
.config/fish/conf.d/30-volta.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
fish_add_path "$HOME/.volta/bin"
|
||||
|
||||
set -gx VOLTA_HOME "$HOME/.volta"
|
Loading…
Reference in a new issue