diff --git a/modules/utility/README.md b/modules/utility/README.md index 893c8d5f..8ed8a4d3 100644 --- a/modules/utility/README.md +++ b/modules/utility/README.md @@ -34,6 +34,7 @@ Aliases ### Disabled Spelling Correction - `ack` + - `ag` - `cd` - `cp` - `ebuild` diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 60acc87e..dec5dd07 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -19,6 +19,7 @@ setopt CORRECT # Disable correction. alias ack='nocorrect ack' +alias ag='nocorrect ag' alias cd='nocorrect cd' alias cp='nocorrect cp' alias ebuild='nocorrect ebuild' @@ -46,6 +47,7 @@ alias sftp='noglob sftp' # Define general aliases. alias _='sudo' +alias ag="${aliases[ag]:-ag} --color-match 35" alias b='${(z)BROWSER}' alias cp="${aliases[cp]:-cp} -i" alias e='${(z)VISUAL:-${(z)EDITOR}}' @@ -83,7 +85,7 @@ else # 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:' - alias ls='ls -G' + alias ls='ls --color=auto' else alias ls='ls -F' fi