Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
393c805f
Commit
393c805f
authored
Mar 22, 2014
by
Robby Russell
Browse files
Merge pull request #1162 from nXqd/patch-1
avoid VCS folders
parents
668886e2
4f9cfee9
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/grep.zsh
View file @
393c805f
...
...
@@ -2,5 +2,11 @@
# Color grep results
# Examples: http://rubyurl.com/ZXv
#
export
GREP_OPTIONS
=
'--color=auto'
# avoid VCS folders
GREP_OPTIONS
=
for
PATTERN
in
.cvs .git .hg .svn
;
do
GREP_OPTIONS+
=
"--exclude-dir=
$PATTERN
"
done
export
GREP_OPTIONS+
=
'--color=auto '
export
GREP_COLOR
=
'1;32'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment