dotfiles/dot_config/fish/conf.d/30-lazygit.fish
2024-04-14 18:41:15 -07:00

11 lines
361 B
Fish

#!/usr/bin/env fish
function lzg --wraps=lazygit
set -f configs "$XDG_CONFIG_HOME/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