Browse Source

Re-implement greph as a .bashrc function

Alois Mahdal 9 years ago
parent
commit
effea5bbb8
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      dotfiles/bash/main.bashrc

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

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
 }