dotfiles/dot_config/fish/conf.d/30-lazygit.fish.tmpl

11 lines
398 B
Fish

#!/usr/bin/env fish
function lzg --wraps=lazygit
{{ if eq .drapeau.colors.name "catppuccin" -}}
set -f configs "$XDG_CONFIG_HOME/lazygit/config.yml,$XDG_CONFIG_HOME/lazygit/{{ .drapeau.colors.name }}/themes-mergable/{{ .drapeau.colors.flavor }}/pink.yml"
{{ else -}}
set -f configs "$XDG_CONFIG_HOME/lazygit/config.yml"
{{ end -}}
lazygit --use-config-file="$configs"
end