DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Ultimate boost to your programming productivity!
Megan Yang Mei
Megan Yang Mei

Posted on • Updated on

Ultimate boost to your programming productivity!

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

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

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
Enter fullscreen mode Exit fullscreen mode

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

Phew! Finally! Ta-da!:

Image description

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
Image description


In case anybody asks, configure it in VS Code:
Open setting:

Image description

There you go:
Image description

Top comments (3)

Collapse
pyrsmk profile image
AurΓ©lien Delogu

"Why am in Twitter?" I'm wondering exactly the same πŸ˜…

Collapse
meganmeiyang profile image
Megan Yang Mei Author

πŸ˜‚

Collapse
wjplatformer profile image
Wj

Welcome to the DEV community!

Head to your account's Settings to...

🌚 Enable dark mode
πŸ”  Change your default font
πŸ“š Adjust your experience level to see more relevant content