]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: don't change directories after todo
authorSamir Benmendil <me@rmz.io>
Sun, 10 May 2020 15:55:21 +0000 (16:55 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 10 Jun 2020 23:42:06 +0000 (00:42 +0100)
zsh/functions/todo

index 142719e0e5f3810c77c03c5905af56d641bace8a..7f7f02480672b164559469137f0789273d8fc87a 100644 (file)
@@ -1,4 +1,3 @@
 function todo() {
-    cd ~/org
-    grep --color=always '* TODO' *.org
+    (cd ~/org ; grep --color=always '* TODO' *.org)
 }