Pārlūkot izejas kodu

Re-implement greph as a .bashrc function

Alois Mahdal 9 gadus atpakaļ
vecāks
revīzija
effea5bbb8
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      dotfiles/bash/main.bashrc

+ 4
- 0
dotfiles/bash/main.bashrc Parādīt failu

@@ -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
 }