Browse Source

Let pod list grep without external pipe

Samuel W. Flint 1 year ago
parent
commit
c40b12b67b
1 changed files with 10 additions and 2 deletions
  1. 10 2
      pod

+ 10 - 2
pod

@@ -88,11 +88,19 @@ case "$CMD" in
         exit
         ;;
     list)
-        find_unlistened --in=here
+        if [ $# -lt 1 ] ; then
+            find_unlistened --in=here
+        else
+            find_unlistened --in=here | grep $@
+        fi
         exit
         ;;
     list-all)
-        find_unlistened
+        if [ $# -lt 1 ] ; then
+            find_unlistened
+        else
+            find_unlistened | grep $@
+        fi
         exit
         ;;
     play)