From ebc70e8ebccbe00012aaa911c915498c0d669768 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:04:43 -0700 Subject: [PATCH] Change attributes of .chezmoiscripts/10-change-shell-to-fish.sh --- ...-to-fish.sh => run_once_after_10-change-shell-to-fish.sh} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename .chezmoiscripts/{run_once_after_00-change-shell-to-fish.sh => run_once_after_10-change-shell-to-fish.sh} (55%) 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 -}}