Skip to content

Instantly share code, notes, and snippets.

@bootleq
Created May 19, 2013 07:57
Show Gist options
  • Select an option

  • Save bootleq/5607008 to your computer and use it in GitHub Desktop.

Select an option

Save bootleq/5607008 to your computer and use it in GitHub Desktop.
zsh alias for ag
() {
# TODO --hidden
local common='noglob ag --nobreak --nogroup --noheading --smart-case --depth=27'
local colors='--color-path 35 --color-line-number 32 --color-match "1;31"'
alias ag=$common' '$colors
alias agjs=$common' '$colors' -G public/javascripts/.*-(debug|src).js'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment