Explorar el Código

Re-implement greph as a .bashrc function

Alois Mahdal hace 10 años
padre
commit
effea5bbb8
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      dotfiles/bash/main.bashrc

+ 4
- 0
dotfiles/bash/main.bashrc Ver fichero

26
     grep --color -n --exclude-dir=".git" -e "$p" -r "$@"
26
     grep --color -n --exclude-dir=".git" -e "$p" -r "$@"
27
 }
27
 }
28
 
28
 
29
+greph() {
30
+    <"$HOME/.bash_history" grep "$@"
31
+}
32
+
29
 gitcd() {
33
 gitcd() {
30
     cd "$(git rev-parse --show-toplevel)"
34
     cd "$(git rev-parse --show-toplevel)"
31
 }
35
 }