Browse Source

add --hide option

pull/1/head
10sr 12 years ago
parent
commit
2bdedd51b3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc View File

@@ -91,8 +91,9 @@ echo


( ! with_coreutils && isdarwin ) || test "$TERM" == dumb || _coloroption=" --color=auto" ( ! with_coreutils && isdarwin ) || test "$TERM" == dumb || _coloroption=" --color=auto"
( ! with_coreutils && isdarwin ) || iswindows || _timeoption=" --time-style=long-iso" ( ! with_coreutils && isdarwin ) || iswindows || _timeoption=" --time-style=long-iso"
( ! with_coreutils && isdarwin ) || _hideoption=" --hide=[A-Z]*"


alias ls="ls -hCF${_coloroption}${_timeoption}"
alias ls="ls -hCF${_coloroption}${_timeoption}${_hideoption}"
# export GREP_OPTIONS="" # export GREP_OPTIONS=""
alias grep="grep -n${_coloroption}" alias grep="grep -n${_coloroption}"
iswindows && alias grep="grep -n" iswindows && alias grep="grep -n"


Loading…
Cancel
Save