Last active
May 9, 2023 17:09
-
-
Save GuillaumeDesforges/a3c42a7e804087f56ab773a0c6c178a5 to your computer and use it in GitHub Desktop.
Bash one liner to set Zsh theme with oh-my-zsh default setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just change the first THEME variable to whatever theme you want. The line will edit, reload and print you the changed line in the .zshrc file | |
THEME="ys"; sed -i s/^ZSH_THEME=".\+"$/ZSH_THEME=\"$THEME\"/g ~/.zshrc && source ~/.zshrc && echo "Edited line in ~/zshrc :" && cat ~/.zshrc | grep -m 1 ZSH_THEME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment