]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
Change 'in' to be a dual-use function instead of alias
authorHendrik Jaeger <git-commit@henk.geekmail.org>
Thu, 8 Feb 2018 06:07:17 +0000 (07:07 +0100)
committerHendrik Jaeger <git-commit@henk.geekmail.org>
Thu, 8 Feb 2018 06:07:17 +0000 (07:07 +0100)
.zsh_aliases
.zsh_functions_taskwarrior

index 18173cb681a71e4f1d7d10493713e2c3d644f3cd..c571abaff4ca202a18186b11861956b6b054d618 100644 (file)
@@ -7,5 +7,5 @@ alias henk_rdesktop='rdesktop -u hendrik.jaeger -d TAM -p - -g 1920x1080 -z -P -
 alias hw1mpv='mpv --ao=alsa:device=[hw:1,0] --audio-format s32'
 
 alias ta='task'
-alias in='task in'
+#alias in='task in'
 alias ti='timew'
index 3431d85cf89092dfa8088f245b6ea4a2785dabc9..a30fd4558f0e1293edfd0a59f840784bb0ef08d7 100644 (file)
@@ -1,5 +1,9 @@
 in () {
-    task add +in $@
+    if [ $# -eq 0 ]; then
+        task in
+    else
+        task add +in $@
+    fi
 }
 
 # taskwarrior