From f58a51f4416129c5a8ca52e8d0a3f898a3e1c448 Mon Sep 17 00:00:00 2001 From: linsilence Date: Mon, 26 Aug 2019 18:14:05 +0800 Subject: [PATCH] install and change to zsh with no prompt --- tools/install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 6c709aa0a..3ef25732f 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -156,14 +156,14 @@ 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 + ## 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