aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-12-04 21:38:07 +0800
committerLAN-TW <lantw44@gmail.com>2013-12-04 21:38:07 +0800
commitcf7097b8502731a0e0e3beb3d334ccd2467cdc29 (patch)
treeb383bf3f7369c4d3b2a28982c9713ebc56c0b320
parentf1fb7d70abee71705dde5aa16ed7611fa9cd2b1f (diff)
downloadconfigfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.tar
configfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.tar.gz
configfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.tar.bz2
configfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.tar.lz
configfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.tar.xz
configfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.tar.zst
configfile-cf7097b8502731a0e0e3beb3d334ccd2467cdc29.zip
bash_include: 修正因 GREP_OPTIONS 導致一些 script 無法正常運作的問題bash_include-20131203
gtkdocize 中會使用 grep,若 grep 輸出是彩色的會導致許多問題。
-rw-r--r--bash_include3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash_include b/bash_include
index cc73863..1870b7d 100644
--- a/bash_include
+++ b/bash_include
@@ -107,7 +107,7 @@ export FCEDIT=vim
export VISUAL=vim
export PAGER=less
export GCC_COLORS=1
-export GREP_OPTIONS='--color=always'
+export GREP_OPTIONS='--color=auto'
# Aliases
@@ -122,6 +122,7 @@ alias cp='cp -pi'
alias mv='mv -i'
alias jobs='jobs -l'
alias less='less -RS'
+alias grep='grep --color=always'
# Non-aliased common tools (safe for use in script)
alias safe_ls='\ls'