This commit is contained in:
Yingjie Wang 2024-06-07 04:08:43 -04:00
parent f85d049cbd
commit 113c023b3c

View File

@ -13,7 +13,7 @@ if [ -z "${zshfish}" ] ;then
else else
echo "Please select your default shell." echo "Please select your default shell."
echo echo
shell=$(echo "bash\n$zshfish" | gum choose --limit=1 -cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) ") shell=$(echo "bash\n$zshfish" | gum choose --limit=1 --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) ")
sudo chsh -s $(which $shell) $(whoami) sudo chsh -s $(which $shell) $(whoami)
if [[ $zshfish == *"zsh"* ]]; then if [[ $zshfish == *"zsh"* ]]; then
echo ":: zsh selected" echo ":: zsh selected"