Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env zsh
- brew install -q micro wget jq
- settings=~/.config/micro/settings.json
- if [ ! -f $settings ]; then
- yes | micro -clean
- fi
- echo $(jq '.colorscheme = "catppuccin-mocha"' $settings) > $settings
- if [[ $MICRO_TRUECOLOR != 1 ]]; then
- echo 'export "MICRO_TRUECOLOR=1"' >> ~/.zshrc
- export "MICRO_TRUECOLOR=1"
- fi
- theme="https://raw.githubusercontent.com/catppuccin/micro/main/src/catppuccin-mocha.micro"
- theme_path=~/.config/micro/colorschemes/catppuccin-mocha.micro
- if [ ! -f $theme_path ]; then
- mkdir ~/.config/micro/colorschemes
- wget $theme -P ~/.config/micro/colorschemes
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement