dotfiles/tmux/clocks.sh
Bill Niblock cf8c5e78a6 Modify configs
- Updated vimrc to point to in-repo files, for Fugitive
- Modified tmux status bar to include better details
     - Created clocks.sh to show multiple timezones
     - Added to right-side of tmux status bar
2015-11-07 17:00:15 -05:00

16 lines
447 B
Bash
Executable file

#!/bin/sh
# Supply tmux with times for right-hand status bar
# Each variable encompasses a time and a color
caliTime="$(TZ=America/Los_Angeles date +%R)"
buffTime="$(TZ=America/New_York date +%R)"
utcTime="$(date -u +%R)"
bangTime="$(TZ=Asia/Kolkata date +%R)"
caliForm="#[fg=red][ $caliTime ]"
buffForm="#[fg=green][ $buffTime ]"
utcForm="#[fg=blue][ $utcTime ]"
bangForm="#[fg=magenta][ $bangTime ]"
echo $caliForm$buffForm$utcForm$bangForm