Update .config/fish/conf.d/30-lazygit.fish

This commit is contained in:
punkfairie 2024-08-04 17:54:30 -07:00
parent 6fd6897952
commit 7410dc0365
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -1,7 +1,11 @@
#!/usr/bin/env fish #!/usr/bin/env fish
function lzg --wraps=lazygit function lzg --wraps=lazygit
set -f configs "$XDG_CONFIG_HOME/lazygit/config.yml,$HOME/.themes/lazygit/{{ .drapeau.colors.name }}/themes-mergable/{{ .drapeau.colors.flavor }}/pink.yml" {{ 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" lazygit --use-config-file="$configs"
end end