File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1- Please append you name/nick here when you have contributed with something!
1+ Please append your name/nick here when you have contributed with something!
22
3344Suvash Thapaliya <
[email protected] >
3434Austin Beam
3535Ingo Heimbach
3636MSempere
37+ kurczynski
Original file line number Diff line number Diff line change 11# Prints the current time in UTC.
22
3+ TMUX_POWERLINE_SEG_UTC_TIME_FORMAT_DEFAULT=" %H:%M %Z"
4+
5+ generate_segmentrc () {
6+ read -d ' ' rccontents << EORC
7+ # date(1) format for the UTC time.
8+ export TMUX_POWERLINE_SEG_UTC_TIME_FORMAT="${TMUX_POWERLINE_SEG_UTC_TIME_FORMAT_DEFAULT} "
9+ EORC
10+ echo " $rccontents "
11+ }
12+
13+ __process_settings () {
14+ if [ -z " $TMUX_POWERLINE_SEG_UTC_TIME_FORMAT " ]; then
15+ export TMUX_POWERLINE_SEG_UTC_TIME_FORMAT=" ${TMUX_POWERLINE_SEG_UTC_TIME_FORMAT_DEFAULT} "
16+ fi
17+ }
18+
319run_segment () {
4- date -u +" %H:%M"
20+ __process_settings
21+ date -u +" $TMUX_POWERLINE_SEG_UTC_TIME_FORMAT "
522 return 0
623}
You can’t perform that action at this time.
0 commit comments