From d173732f373d6d8d6ae7bd8f1bf7eee1559e9d98 Mon Sep 17 00:00:00 2001 From: pSox Date: Thu, 14 Jun 2018 10:48:29 +0100 Subject: [PATCH] added date time variables --- zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zshrc b/zshrc index e9c4975..020be3d 100755 --- a/zshrc +++ b/zshrc @@ -217,4 +217,11 @@ fi path+=( $GOPATH/bin ${GOROOT+${GOROOT}/bin} ) +# Set Time Variables +precmd() { + export _DATE_=$(date -u +%Y%m%d) + export _TIME_=$(date -u +%H%M%S) + export _DTTS_="${_DATE_}T${_TIME_}Z" +} + # vim: sw=2 ts=8 si relativenumber number