mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
installer: ask user about changing the shell to zsh
This commit is contained in:
1 parent
0824dcc9fb
commit
b944fee6ea
1 file changed
+9
@@ -159,6 +159,15 @@ setup_shell() {
|
|||||||
|
|
||||||
echo "${BLUE}Time to change your default shell to zsh:${RESET}"
|
echo "${BLUE}Time to change your default shell to zsh:${RESET}"
|
||||||
|
|
||||||
|
# Prompt for user choice on changing the default login shell
|
||||||
|
printf "${YELLOW}Do you want to change your default shell to zsh? [Y/n]${RESET} "
|
||||||
|
read opt
|
||||||
|
case $opt in
|
||||||
|
y*|Y*|"") echo "Changing the shell..." ;;
|
||||||
|
n*|N*) echo "Shell change skipped."; return ;;
|
||||||
|
*) echo "Invalid choice. Shell change skipped."; return ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Test for the right location of the "shells" file
|
# Test for the right location of the "shells" file
|
||||||
if [ -f /etc/shells ]; then
|
if [ -f /etc/shells ]; then
|
||||||
shells_file=/etc/shells
|
shells_file=/etc/shells
|
||||||
|
|||||||
Reference in new issue
Block a user