From 1811d3351c734393d3a852071b65f9b1dba79b84 Mon Sep 17 00:00:00 2001 From: Ev Bogdanov Date: Wed, 16 Aug 2017 19:38:33 +0300 Subject: [PATCH] `ag+` becomes `search` --- README.md | 2 +- bin/{ag+ => search} | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) rename bin/{ag+ => search} (89%) 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