I’m currently working remotely and part-time from London with the rest of my team in San Francisco. I don’t enjoy converting between time zones and since I spend most my time within tmux, I modified my status bar to include multiple time zones.
To do this, I use the unix
date utility and set the
TZ (time zone) environment variable before each
date call. Unfortunately, when tmux executes these commands, the time zone environment variables are expanded and both times printed are within the same time zone.
Create another script to be called by tmux. A bit hacky.
% characters appropriately within the
.tmux.conf file. The status bar will update every
status-interval (so make it update every second or so!). We need to escape the
% with another
% instead of a
\ as tmux passes the times through