mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-11 19:17:19 +10:00
Adding choose-shell script
This commit is contained in:
@@ -17,6 +17,7 @@ print_info "Choose your user's default shell:"
|
|||||||
echo "1. /bin/bash"
|
echo "1. /bin/bash"
|
||||||
echo "2. /bin/fish"
|
echo "2. /bin/fish"
|
||||||
echo "3. /bin/zsh"
|
echo "3. /bin/zsh"
|
||||||
|
echo "4. quit"
|
||||||
|
|
||||||
read -p "Enter the number of your preferred shell: " choice
|
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
|
printf '%s' "If default shell was changed, you will need to logout and
|
||||||
log back in fo\nr change to take effect."
|
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."
|
echo "Invalid choice. Please try again."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user