Do the ag thing properly
1fba356e258e3ae959e9c3974d6c1d714d7080e4
1 parent
2b2a13f8
.zshrc
+0 -1
| 52 | 52 | alias web='chromium &' |
|
| 53 | 53 | alias e=$EDITOR |
|
| 54 | 54 | alias pdf='mupdf' |
|
| 55 | 55 | alias webserver='python2 -m SimpleHTTPServer' |
|
| 56 | 56 | alias pacman='sudo pacman --color=auto' |
|
| 57 | - | alias ag='ag -U' |
|
| 58 | 57 | ||
| 59 | 58 | # |
|
| 60 | 59 | # History |
|
| 61 | 60 | # |
|
| 62 | 61 | HISTFILE=~/.zsh_history |
bin/ag
added
+9 -0
| 1 | + | #!/bin/sh |
|
| 2 | + | ||
| 3 | + | # Since ~ has everything in git exclude, ag |
|
| 4 | + | # wouldn't find anything without -U. |
|
| 5 | + | if [ "$PWD" = "$HOME" ]; then |
|
| 6 | + | /usr/bin/ag -U "$@" |
|
| 7 | + | else |
|
| 8 | + | /usr/bin/ag "$@" |
|
| 9 | + | fi |