Skip to content

Commit

Permalink
Installation work... wip
Browse files Browse the repository at this point in the history
  • Loading branch information
raptor235 committed Jun 19, 2024
1 parent e0d4e4e commit fbd84d3
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions util/set_theme_and_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,23 @@ set_oh_my_zsh_theme_and_plugins() {
fi

echo "Select a theme for Oh My Zsh:"
echo "1) robbyrussell"
echo "2) agnoster"
echo "3) gallois"
echo "4) avit"
echo "5) random"
read -p "Enter the number corresponding to your choice: " theme_choice
echo "1) robbyrussell"
echo "2) agnoster"
echo "3) gallois"
echo "4) avit"
echo "5) random"
read -p "Enter the number corresponding to your choice: " theme_choice

case $theme_choice in
1) ZSH_THEME="robbyrussell" ;;
2) ZSH_THEME="agnoster" ;;
3) ZSH_THEME="gallois" ;;
4) ZSH_THEME="avit" ;;
5) ZSH_THEME="random" ;;
*)
echo "Invalid choice, defaulting to robbyrussell"
ZSH_THEME="robbyrussell"
;;
esac
case $theme_choice in
1) ZSH_THEME="robbyrussell";;
2) ZSH_THEME="agnoster";;
3) ZSH_THEME="gallois";;
4) ZSH_THEME="avit";;
5) ZSH_THEME="random";;
*) echo "Invalid choice, defaulting to robbyrussell"; ZSH_THEME="robbyrussell";;
esac

# Set the theme in .zshrc
# Set the theme in .zshrc
if grep -q "^ZSH_THEME=" ~/.zshrc; then
sed -i.bak "s/^ZSH_THEME=.*/ZSH_THEME=\"$ZSH_THEME\"/" ~/.zshrc
else
Expand Down

0 comments on commit fbd84d3

Please sign in to comment.