Change attributes of .chezmoiscripts/10-change-shell-to-fish.sh
This commit is contained in:
parent
e9f020b0e3
commit
ebc70e8ebc
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
{{- if lookPath "fish" -}}
|
||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
if [ "$SHELL" != "$(which fish)" ]; then
|
if [ "$SHELL" != "$(which fish)" ]; then
|
||||||
chsh -s "$(which fish)"
|
chsh -s "$(which fish)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{{- end -}}
|
Loading…
Reference in a new issue