Sfoglia il codice sorgente

Add shorthand function to find bins in repos

Alois Mahdal 10 anni fa
parent
commit
74464625a9
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc Vedi 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
 ### '''' ###