aboutsummaryrefslogtreecommitdiffstats
path: root/modules/date
diff options
context:
space:
mode:
Diffstat (limited to 'modules/date')
-rwxr-xr-xmodules/date12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/date b/modules/date
new file mode 100755
index 0000000..1ef3a99
--- /dev/null
+++ b/modules/date
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Prints out the date
+
+PREFIX='📆 '
+
+get_date()
+{
+ echo "$PREFIX $(date '+%d-%m-%y (%a)')"
+}
+
+get_date