Change attributes of .chezmoiscripts/10-change-shell-to-fish.sh

This commit is contained in:
punkfairie 2024-04-21 15:04:43 -07:00
parent e9f020b0e3
commit ebc70e8ebc
No known key found for this signature in database
GPG key ID: 1B492EAEA989C054

View file

@ -1,5 +1,8 @@
#!/bin/bash
{{- if lookPath "fish" -}}
#!/bin/env bash
if [ "$SHELL" != "$(which fish)" ]; then
chsh -s "$(which fish)"
fi
{{- end -}}