Skip to content

Commit

Permalink
[Fix sorin-ionescu#732] Replace $GREP_OPTIONS with an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu authored and trongrg committed Mar 13, 2015
1 parent 13a5f61 commit 79d1ada
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 0 additions & 9 deletions modules/environment/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ unsetopt BG_NICE # Don't run all background jobs at a lower priority.
unsetopt HUP # Don't kill jobs on shell exit.
unsetopt CHECK_JOBS # Don't report on jobs when shell exit.

#
# Grep
#

if zstyle -t ':prezto:environment:grep' color; then
export GREP_COLOR='37;45'
export GREP_OPTIONS='--color=auto'
fi

#
# Termcap
#
Expand Down
6 changes: 6 additions & 0 deletions modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ alias lc='lt -c' # Lists sorted by date, most recent last, shows change
alias lu='lt -u' # Lists sorted by date, most recent last, shows access time.
alias sl='ls' # I often screw this up.

# Grep
if zstyle -t ':prezto:module:utility:grep' color; then
export GREP_COLOR='37;45'
alias grep="$aliases[grep] --color=auto"
fi

# Mac OS X Everywhere
if [[ "$OSTYPE" == darwin* ]]; then
alias o='open'
Expand Down

0 comments on commit 79d1ada

Please sign in to comment.