Shorter search command

This commit is contained in:
Ev Bogdanov 2018-01-19 01:09:20 +03:00
parent e5e242f55a
commit d5fc4fe6de
2 changed files with 1 additions and 1 deletions

16
bin/s Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
if [ ! "$(which ag)" ]; then
echo '+----------------------------------------------------+'
echo '| The Silver Searcher is not found. Go get it tiger! |'
echo '| |'
echo '| https://github.com/ggreer/the_silver_searcher |'
echo '+----------------------------------------------------+'
exit 1
fi
ag --nocolor --noheading "$@"
if [ $? -ne 0 ]; then
echo 'No results.'
fi