aboutsummaryrefslogtreecommitdiff
path: root/segments/time.sh
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-04-20 19:37:10 -0600
committerCody Hiar <codyfh@gmail.com>2017-04-20 19:37:10 -0600
commit2dd809781527976307b47a598887062047e202c9 (patch)
tree8b29daba2c1ef072f380ef530b7e7d9256e43eb3 /segments/time.sh
parentbaeb698bb006193559fc5aa1901180a3ccc73b7a (diff)
Making tmux configuration much easier to manage
Diffstat (limited to 'segments/time.sh')
-rwxr-xr-xsegments/time.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/segments/time.sh b/segments/time.sh
deleted file mode 100755
index e307399..0000000
--- a/segments/time.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-# Prints the current time.
-
-TMUX_POWERLINE_SEG_TIME_FORMAT_DEFAULT="%H:%M"
-
-generate_segmentrc() {
- read -d '' rccontents << EORC
-# date(1) format for the time. Americans might want to have "%I:%M %p".
-export TMUX_POWERLINE_SEG_TIME_FORMAT="${TMUX_POWERLINE_SEG_TIME_FORMAT_DEFAULT}"
-EORC
- echo "$rccontents"
-}
-
-__process_settings() {
- if [ -z "$TMUX_POWERLINE_SEG_TIME_FORMAT" ]; then
- export TMUX_POWERLINE_SEG_TIME_FORMAT="${TMUX_POWERLINE_SEG_TIME_FORMAT_DEFAULT}"
- fi
-}
-
-run_segment() {
- __process_settings
- date +"$TMUX_POWERLINE_SEG_TIME_FORMAT"
- return 0
-}