Mercurial > dotfiles
view .chezmoiscripts/run_onchange_after_43-setup-fish.sh.tmpl @ 1077:04ad0b576298
fix: make sure mise is installed before mercurial
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Sat, 22 Feb 2025 10:13:14 +0100 |
parents | e2542163359a |
children |
line wrap: on
line source
{{ if (eq .chezmoi.os "linux") -}} #!/usr/bin/env fish {{ $theme := "NONE" -}} {{ if .dark -}} {{ $theme = "Catppuccin Mocha" -}} {{ else -}} {{ $theme = "Tutti Colori" -}} {{ end -}} {{ $themepath := (list "dot_config/private_fish/themes/" $theme ".theme") | join "" -}} {{ if $themepath | lstat -}} # Template hash: {{ include $themepath | sha256sum -}} {{ end -}} echo "Setting fish theme to {{ $theme }}" yes | fish_config theme save "{{ $theme }}" # Fish_plugin hash: {{ include "dot_config/private_fish/fish_plugins" | sha256sum -}} fisher update {{ if eq .chezmoi.osRelease.name "Ubuntu" -}} sudo chsh -s $(which fish) $USER {{ end }} {{ end }}