Ultimate boost to your programming productivity!
Tags: productivity
Published: 2022-07-09 05:17:34

`macstudio` `macos` `monterey` `zsh` `oh-my-zsh`

Today is Saturday. I had a **grand** plan, to replace existing serial-usb cable & drivers in my project, to increase the transmission quality ( current drivers keep giving me scrambled characters when read() from the port). Alright, by the sound of it, it is already huge. And it is indeed, 200%. 

Rolling up sleeves (no, not wearing long-sleeve), shooting down espresso caffeine x3 (sneaked in some milk), I'm ready to go! **yeah!** **boom!** **I'm unstoppable!**

Open up google, type: "serial-usb cable", search, get the top result, then search for android drivers. Shit, it is rar, search for "unzip rar in macos". Tab after tab, hey, wait, what is this?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rd0zq9ibjhwo1x37zq1g.png)
 
Out of I-forgot-where, something caught my eye. In a splitting 0.01 second, I've decided this is what I ~~want~~ Need!

- search for "zsh git tag"
- found oh-my-zsh theme 'agnoster'
- `nano ~/.zshrc` to change theme, a disgusting color label with ? invalid character was displayed.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jbytnurzvqm8e84syd8v.png)
 
**WTF?** ( i meant, android way, What A Terrible Failure)

- well, search for solution, noticed that a symbol font should be installed for the character to display correctly : 'powerline'
- search for 'install powerline in macos'
- installed it. did not work: 
`raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8"`

- search for fix, set below:
```
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
```
then run `source ~/.zshrc`
- new error. search for solution and decided to set `PATH=$HOME/.local/bin:$PATH` in zshrc
- fixed everything but the color of labels is really an eye-sore
- go to the theme file `nano ~/.oh-my-zsh/themes/agnoster.zsh-theme` you can tweek the colors
- and open up terminal.app, change the color panel setting from the profile you use. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0se3usf5v0sbp6jspg49.png)
 
**Phew! Finally! Ta-da!:**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjne5olqfkcuuvsoupgq.jpg)

Do you feel it? you felt it? Coding productivity boooooosted x 100! Level unlocked. Skill tree lit up! 

Well empty stomach calling, gotta go. But wait, I have a vague feeling that I seem to forget something, what is it? 
nvm. 

There is always another day. 

Sun rises everyday. 

Rome is not built in one day. 

Work-play balance. 

Peace, love.

---
Alright, I wasn't telling the whole story.
here it unfolds:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lzzddpakfqd6ucjuinj7.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2hk2u0nb4jrwgh0tsvy.PNG)
  
---
In case anybody asks, configure it in VS Code:
Open setting:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1di3bdxxomerp9xw08wl.png)
 
There you go:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w5maxookflpva6xw9g8u.png)