Advertisement
tygcrawford

micro-install

May 12th, 2024 (edited)
902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. #!/usr/bin/env zsh
  2.  
  3. brew install -q micro wget jq
  4.  
  5. settings=~/.config/micro/settings.json
  6.  
  7. if [ ! -f $settings ]; then
  8.   yes | micro -clean
  9. fi
  10.  
  11. echo $(jq '.colorscheme = "catppuccin-mocha"' $settings) > $settings
  12.  
  13. if [[ $MICRO_TRUECOLOR != 1 ]]; then
  14.   echo 'export "MICRO_TRUECOLOR=1"' >> ~/.zshrc
  15.   export "MICRO_TRUECOLOR=1"
  16. fi
  17.  
  18. theme="https://raw.githubusercontent.com/catppuccin/micro/main/src/catppuccin-mocha.micro"
  19. theme_path=~/.config/micro/colorschemes/catppuccin-mocha.micro
  20.  
  21. if [ ! -f $theme_path ]; then
  22.   mkdir ~/.config/micro/colorschemes
  23.   wget $theme -P ~/.config/micro/colorschemes
  24. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement