1
0
Fork 0

Added support for the silver searcher (ag)

[ticket: X]
pull/666/head
Chauncey Garrett 11 years ago
parent f7fc26713f
commit 2bd20aa367

@ -34,6 +34,7 @@ Aliases
### Disabled Spelling Correction ### Disabled Spelling Correction
- `ack` - `ack`
- `ag`
- `cd` - `cd`
- `cp` - `cp`
- `ebuild` - `ebuild`

@ -19,6 +19,7 @@ setopt CORRECT
# Disable correction. # Disable correction.
alias ack='nocorrect ack' alias ack='nocorrect ack'
alias ag='nocorrect ag'
alias cd='nocorrect cd' alias cd='nocorrect cd'
alias cp='nocorrect cp' alias cp='nocorrect cp'
alias ebuild='nocorrect ebuild' alias ebuild='nocorrect ebuild'
@ -46,6 +47,7 @@ alias sftp='noglob sftp'
# Define general aliases. # Define general aliases.
alias _='sudo' alias _='sudo'
alias ag="${aliases[ag]:-ag} --color-match 35"
alias b='${(z)BROWSER}' alias b='${(z)BROWSER}'
alias cp="${aliases[cp]:-cp} -i" alias cp="${aliases[cp]:-cp} -i"
alias e='${(z)VISUAL:-${(z)EDITOR}}' alias e='${(z)VISUAL:-${(z)EDITOR}}'
@ -83,7 +85,7 @@ else
# Define colors for the completion system. # Define colors for the completion system.
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:' export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
alias ls='ls -G' alias ls='ls --color=auto'
else else
alias ls='ls -F' alias ls='ls -F'
fi fi

Loading…
Cancel
Save