homepage

Why you should commit dotfiles, and a smart way to do it

Whether you switch laptops for work, or you have a bunch of devices that you use at home, replicating environments can be a pain if you don't have an automated way to do it.

If you rely heavily on tools that require config files (for me it's vim, taskwarrior, skhd, tmux etc) then having to recreate new config files when a new computer arrives isn't ideal.

So we commit them to version control, of course. But it's not that simple with dotfiles that usually live in our home directory or in the .config directory, as these directoried usually contain a bunch of other files we don't want to commit to version control.

To get around this, we can use the power of symlinks.

OTP from the command line (AKA ditch your smartphone)

I'm in the middle of an experiment to ditch my smartphone for a month.

I've had a crummy little Nokia knocking around that I threw my sim into a few times in the last few years in an attempt to curb my smartphone addiction (the type we all have). I always enjoyed the few days of respite it gave me from the relentlesness of smartphone ownership, but I never stuck to it, lured back in my the conveniences of a handheld PC.

Anyway, i've found new resolve and i'm just using my Nokia dumbphone now, but a problem occurred today at work - how do I manage all my OTP needs? Usually I get a text or open up the Google Authenticator app to get access to systems.

Enter pass and pass otp.

See post archive