diff options
author | tv <tv@krebsco.de> | 2018-11-08 19:09:11 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-11-08 19:09:11 +0100 |
commit | 69adc5dc17d9f9b9df605eada6a433545ff987dc (patch) | |
tree | 6aa1207ce0fcfb8cc02c0bb6ee0c80f413092032 /tv/5pkgs/simple | |
parent | 550f8fce2571537b23588b41e363c27a6cd46c0e (diff) |
tv q: add utcdate
Diffstat (limited to 'tv/5pkgs/simple')
-rw-r--r-- | tv/5pkgs/simple/q/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/q/default.nix b/tv/5pkgs/simple/q/default.nix index 655c75e1b..cbcec1bae 100644 --- a/tv/5pkgs/simple/q/default.nix +++ b/tv/5pkgs/simple/q/default.nix @@ -71,6 +71,11 @@ let '+[1m%Y-%m-%d[;30mT[;38;5;088m%H:%M[m:%S%:z' ''; + q-utcdate = '' + ${pkgs.coreutils}/bin/date -u \ + '+[1m%Y-%m-%d[;30mT[;38;5;065m%H:%M[m:%S%:z' + ''; + q-gitdir = '' if test -d .git; then #git status --porcelain @@ -295,6 +300,7 @@ pkgs.writeBashBin "q" '' set -eu export PATH=/var/empty ${q-cal} + ${q-utcdate} ${q-isodate} ${q-sgtdate} (${q-gitdir}) & |