]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions nb_repos_grep
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 21 Oct 2017 01:37:36 +0000 (02:37 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 21 Oct 2017 01:37:36 +0000 (02:37 +0100)
etc/profile.d/functions

index d57146bd6a5c66ebc94146324d8ffa1501be241a..33765a95f824045c5f580d5b7c206d4ad300685f 100644 (file)
@@ -53,6 +53,10 @@ nb_repos_ls() {
   done
 }
 
+nb_repos_grep() {
+  grep $@ `nb_repos`
+}
+
 # NB 13.12.16: TODO replace with nb_repos and nb_repos_ls
 # NB 21.10.17 nb_repo() {
 # NB 21.10.17   [ -z "$FUNCNAME" ] && local FUNCNAME='nb_repo' # for busybox