Browse Source

Add shorthand function to find bins in repos

Alois Mahdal 10 years ago
parent
commit
74464625a9
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc View File

@@ -55,6 +55,14 @@ vims() {
55 55
       | tac
56 56
 }
57 57
 
58
+yum_hasbin() {
59
+    local bname
60
+    for bname in "$@";
61
+    do
62
+        yum provides "*bin/$bname"
63
+    done
64
+}
65
+
58 66
 ### .... ###
59 67
 ### BASH ###
60 68
 ### '''' ###