mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-12-07 06:12:51 +11:00
Adding choose-shell script
This commit is contained in:
1 parent
ed8b3a1e41
commit
f990d8df1c
1 file changed
+5
@@ -17,6 +17,7 @@ print_info "Choose your user's default shell:"
|
||||
echo "1. /bin/bash"
|
||||
echo "2. /bin/fish"
|
||||
echo "3. /bin/zsh"
|
||||
echo "4. quit"
|
||||
|
||||
read -p "Enter the number of your preferred shell: " choice
|
||||
|
||||
@@ -39,6 +40,10 @@ log back in for change to take effect."
|
||||
printf '%s' "If default shell was changed, you will need to logout and
|
||||
log back in fo\nr change to take effect."
|
||||
;;
|
||||
4)
|
||||
echo "User has chosen to quit program."
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Invalid choice. Please try again."
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user