Monthly Archives: November 2019

A virtualenv indicator that works everywhere

NOTE: While none of the significant elements of this approach require zsh, the formatting syntax and mechanism for updating a prompt dynamically differ between zsh and bash. See the end for a version with zsh-specific bits stripped out. For a … Continue reading

Posted in Geek Stuff | Leave a comment

How to skip the fortune command when your shell is slow to start

A.K.A. How to get and compare timestamps without external commands in shell script (and without even invoking subshells in Zsh) I love the fortune command. It’s a charming little addition to each new tab I open… until something (like a … Continue reading

Posted in Geek Stuff | Leave a comment

On-Demand Loading for your .zshrc or .bashrc

Recently, I’ve been trying to make my coding environment snappier, and one thing I was never happy with was how slow my .zshrc is. Now, don’t get me wrong, I’m not one of those people using oh-my-zsh with a ton … Continue reading

Posted in Geek Stuff | 2 Comments