From 2dd809781527976307b47a598887062047e202c9 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 20 Apr 2017 19:37:10 -0600 Subject: Making tmux configuration much easier to manage --- segments/date.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 segments/date.sh (limited to 'segments/date.sh') diff --git a/segments/date.sh b/segments/date.sh deleted file mode 100755 index 32263d5..0000000 --- a/segments/date.sh +++ /dev/null @@ -1,23 +0,0 @@ -# Print the current date. - -TMUX_POWERLINE_SEG_DATE_FORMAT_DEFAULT="%F" - -generate_segmentrc() { - read -d '' rccontents << EORC -# date(1) format for the date. If you don't, for some reason, like ISO 8601 format you might want to have "%D" or "%m/%d/%Y". -export TMUX_POWERLINE_SEG_DATE_FORMAT="${TMUX_POWERLINE_SEG_DATE_FORMAT_DEFAULT}" -EORC - echo "$rccontents" -} - -__process_settings() { - if [ -z "$TMUX_POWERLINE_SEG_DATE_FORMAT" ]; then - export TMUX_POWERLINE_SEG_DATE_FORMAT="${TMUX_POWERLINE_SEG_DATE_FORMAT_DEFAULT}" - fi -} - -run_segment() { - __process_settings - date +"$TMUX_POWERLINE_SEG_DATE_FORMAT" - return 0 -} -- cgit v1.2.3