Update .config/fish/conf.d/30-lazygit.fish
This commit is contained in:
parent
6fd6897952
commit
7410dc0365
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
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"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue