Tuesday, January 26, 2016

Make better bash scripts for yourself (and others)

When you write a bash script, there's a few things you can do to make your life (and anyone else who uses it) a lot better. Here's a few of the things that I (try) to do when I write scripts to make it easier to use and less error prone.

Sunday, January 17, 2016

Ditch capslock for escape in xwindows

Run this and your capslock will be changed to the escape key for the current session:
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
Taken from this post on the vim wiki