Skip to content

Commit 17ef5f8

Browse files
committed
update bootstrap to be easier
Signed-off-by: Tin Lai <[email protected]>
1 parent afb3e5c commit 17ef5f8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bootstrap/install.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ eval "$(curl -s https://raw.githubusercontent.com/soraxas/shsh/master/libexec/sh
77

88
## stop if basher is already installed
99
if [ -d "$SHSH_ROOT" ]; then
10-
echo "shsh already exists at '$SHSH_ROOT'" >&2
10+
echo "shsh already exists at '$SHSH_ROOT'." >&2
11+
echo "Delete it if you want to start this bootstrap process again." >&2
1112
exit 1
1213
fi
1314

@@ -48,7 +49,9 @@ case "$startup_type" in
4849
printf '%s\n' 'status --is-interactive; and shsh init fish | source' >>"$startup_script"
4950
;;
5051
*)
51-
echo "Unknown shell '$shell_type'"
52+
echo "Unknown shell '$shell_type'." >&2
53+
echo "Perhaps set the \$SHELL environment variable to your shell type before running this?" >&2
54+
echo "e.g. export SHELL=bash" >&2
5255
exit 1
5356
;;
5457
esac
@@ -58,3 +61,6 @@ esac
5861
cd "$SHSH_ROOT" && make self-linking
5962
)
6063

64+
# restart shell
65+
exec "$SHELL" -l
66+

0 commit comments

Comments
 (0)