summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/q/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-10-13 21:53:20 +0200
committertv <tv@krebsco.de>2016-10-13 21:53:20 +0200
commit956e4d7cff8398fa52e655f47df53198f19fb673 (patch)
treee7e3ca86832edfad08edbd4ba90667337fc61cdd /tv/5pkgs/q/default.nix
parent753629714cd3344cd1002e64f4fb3dfd5b4ab146 (diff)
tv q: print TODOs first
Diffstat (limited to 'tv/5pkgs/q/default.nix')
-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 b19402f..f923950 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
''