summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-10-13 21:53:20 +0200
committertv <tv@krebsco.de>2016-10-13 22:11:31 +0200
commit6e2e2630c0517e2bb9df2aa8f4e74f0c87ce76f5 (patch)
tree83b4e22310d7ef18aa13e2dc6d9d3dbd401f8da5 /tv/5pkgs
parent7c91a1954992db9fa06619753faa3a193a196040 (diff)
tv q: print TODOs first
Diffstat (limited to 'tv/5pkgs')
-rw-r--r--tv/5pkgs/q/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/tv/5pkgs/q/default.nix b/tv/5pkgs/q/default.nix
index b19402fa..f923950f 100644
--- a/tv/5pkgs/q/default.nix
+++ b/tv/5pkgs/q/default.nix
@@ -178,6 +178,11 @@ in
pkgs.writeBashBin "q" ''
set -eu
export PATH=/var/empty
+ (${q-todo}) || :
+ if [ "$PWD" != "$HOME" ]; then
+ (HOME=$PWD; ${q-todo}) || :
+ fi
+ echo
${q-cal}
echo
${q-isodate}
@@ -189,8 +194,4 @@ pkgs.writeBashBin "q" ''
(${q-online}) &
(${q-thermal_zone}) &
wait
- ${q-todo}
- if [ "$PWD" != "$HOME" ]; then
- (HOME=$PWD; ${q-todo})
- fi
''