diff --git a/.config/fish/conf.d/20-aliases.fish b/.config/fish/conf.d/20-aliases.fish index 62aa7e8..1629d8c 100644 --- a/.config/fish/conf.d/20-aliases.fish +++ b/.config/fish/conf.d/20-aliases.fish @@ -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 diff --git a/.config/fish/conf.d/30-eza.fish b/.config/fish/conf.d/30-eza.fish new file mode 100644 index 0000000..6b9da65 --- /dev/null +++ b/.config/fish/conf.d/30-eza.fish @@ -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 diff --git a/.config/fish/conf.d/30-lazygit.fish b/.config/fish/conf.d/30-lazygit.fish new file mode 100644 index 0000000..02be6df --- /dev/null +++ b/.config/fish/conf.d/30-lazygit.fish @@ -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 diff --git a/.config/fish/conf.d/30-volta.fish b/.config/fish/conf.d/30-volta.fish new file mode 100644 index 0000000..e4dbf8a --- /dev/null +++ b/.config/fish/conf.d/30-volta.fish @@ -0,0 +1,5 @@ +#!/usr/bin/env fish + +fish_add_path "$HOME/.volta/bin" + +set -gx VOLTA_HOME "$HOME/.volta"