Przeglądaj źródła

Re-implement greph as a .bashrc function

Alois Mahdal 9 lat temu
rodzic
commit
effea5bbb8
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      dotfiles/bash/main.bashrc

+ 4
- 0
dotfiles/bash/main.bashrc Wyświetl plik

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