diff --git a/.chezmoiscripts/run_once_after_00-change-shell-to-fish.sh b/.chezmoiscripts/run_once_after_10-change-shell-to-fish.sh similarity index 55% rename from .chezmoiscripts/run_once_after_00-change-shell-to-fish.sh rename to .chezmoiscripts/run_once_after_10-change-shell-to-fish.sh index 7d21392..bcd5032 100644 --- a/.chezmoiscripts/run_once_after_00-change-shell-to-fish.sh +++ b/.chezmoiscripts/run_once_after_10-change-shell-to-fish.sh @@ -1,5 +1,8 @@ -#!/bin/bash +{{- if lookPath "fish" -}} +#!/bin/env bash if [ "$SHELL" != "$(which fish)" ]; then chsh -s "$(which fish)" fi + +{{- end -}}