diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-06-01 21:12:08 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-06-03 17:18:25 +0200 |
commit | b944fee6ea0b5616e8bff95206c3ce57d268625f (patch) | |
tree | b664bf2fcb394a6af390ab27a32c4ad50102a99e /tools | |
parent | 0824dcc9fbd66171f53c38c8327598ec469ebe85 (diff) | |
download | zsh-b944fee6ea0b5616e8bff95206c3ce57d268625f.tar.gz zsh-b944fee6ea0b5616e8bff95206c3ce57d268625f.tar.bz2 zsh-b944fee6ea0b5616e8bff95206c3ce57d268625f.zip |
installer: ask user about changing the shell to zsh
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/install.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/install.sh b/tools/install.sh index a515bac48..d56d8addc 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -159,6 +159,15 @@ setup_shell() { 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 if [ -f /etc/shells ]; then shells_file=/etc/shells |