Skip to content

Instantly share code, notes, and snippets.

@GuillaumeDesforges
Last active May 9, 2023 17:09
Show Gist options
  • Save GuillaumeDesforges/a3c42a7e804087f56ab773a0c6c178a5 to your computer and use it in GitHub Desktop.
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
# 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