Merge pull request #646 from trinitronx/add-silver-searcher-aliases

Adding alias for sane default options to "ag" ("the silver searcher")
pull/648/head
Nils Winkler 2016-01-12 07:49:13 +01:00
commit 3974532a82
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
cite 'about-alias'
about-alias 'the silver searcher (ag) aliases'
## Summary for args to less:
# less(1)
# -M (-M or --LONG-PROMPT) Prompt very verbosely
# -I (-I or --IGNORE-CASE) Searches with '/' ignore case
# -R (-R or --RAW-CONTROL-CHARS) For handling ANSI colors
# -F (-F or --quit-if-one-screen) Auto exit if <1 screen
# -X (-X or --no-init) Disable termcap init & deinit
alias ag='ag --smart-case --pager="less -MIRFX"'