mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
install and change to zsh with no prompt
This commit is contained in:
parent
e6b26c1ea0
commit
f58a51f441
1 changed files with 8 additions and 8 deletions
|
|
@ -156,14 +156,14 @@ 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
|
## 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} "
|
#printf "${YELLOW}Do you want to change your default shell to zsh? [Y/n]${RESET} "
|
||||||
read opt
|
#read opt
|
||||||
case $opt in
|
#case $opt in
|
||||||
y*|Y*|"") echo "Changing the shell..." ;;
|
#y*|Y*|"") echo "Changing the shell..." ;;
|
||||||
n*|N*) echo "Shell change skipped."; return ;;
|
#n*|N*) echo "Shell change skipped."; return ;;
|
||||||
*) echo "Invalid choice. Shell change skipped."; return ;;
|
#*) echo "Invalid choice. Shell change skipped."; return ;;
|
||||||
esac
|
#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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue