diff --git a/README.md b/README.md index d4c62a4..efea1e7 100644 --- a/README.md +++ b/README.md @@ -82,13 +82,13 @@ I spawn Acme by running `a` script. Who is who in **bin** directory: - `a` start Acme -- `ag+` search with The Silver Searcher - `c+ SYMBOL` comment selection (python: `|c+` or `|c+ '#'`, erlang: `|c+ %`, js: `|c+ //`) - `c- SYMBOL` uncomment selection - `git+ MESSAGE` git: commit and push to master - `h+ SYMBOL` draw a pretty heading - `hg+ MESSAGE` hg: commit and push to master - `lower` convert selection to lowercase +- `search` search with The Silver Searcher - `s-` remove leading whitespace - `s2t N_SPACES` spaces to tabs (default: 4 spaces to 1 tab) - `t2s N_SPACES` tabs to spaces (default: 1 tab to 4 spaces) diff --git a/bin/ag+ b/bin/search similarity index 89% rename from bin/ag+ rename to bin/search index 7c8a25a..8a0aa06 100755 --- a/bin/ag+ +++ b/bin/search @@ -10,3 +10,7 @@ if [ ! "$(which ag)" ]; then fi ag --nocolor --noheading "$@" + +if [ $? -ne 0 ]; then + echo 'No results.' +fi