comparison .chezmoiscripts/run_onchange_after_43-setup-fish.sh.tmpl @ 1040:ea090c39e480

feat: enable fish theme
author Zeger Van de Vannet <zeger@vandevan.net>
date Mon, 29 Apr 2024 18:33:04 +0200
parents
children e5903280a5f6 e2542163359a
comparison
equal deleted inserted replaced
1039:ebd5e7683e1e 1040:ea090c39e480
1 {{ if (eq .chezmoi.os "linux") -}}
2 #!/usr/bin/env fish
3
4 {{ $theme := "NONE" -}}
5 {{ if .dark -}}
6 {{ $theme = "Catppuccin Mocha" -}}
7 {{ else -}}
8 {{ $theme = "Tutti Colori" -}}
9 {{ end -}}
10
11 {{ $themepath := (list "dot_config/private_fish/themes/" $theme ".theme") | join "" -}}
12 {{ if $themepath | lstat -}}
13 # Template hash: {{ include $themepath | sha256sum -}}
14 {{ end -}}
15 echo "Setting fish theme to {{ $theme }}"
16 yes | fish_config theme save "{{ $theme }}"
17
18 # Fish_plugin hash: {{ include "dot_config/private_fish/fish_plugins" | sha256sum -}}
19 fisher update
20
21 {{ end }}