modifying ls alias to be more *nix friendly and adding grep options

This commit is contained in:
staticsafe 2012-06-10 08:58:44 -04:00
parent 5d662e6283
commit 6c550ab9a7
2 changed files with 10 additions and 2 deletions

View File

@ -7,4 +7,9 @@ alias macgen="openssl rand -hex 6 | sed 's/\(..\)/\1:/g;s/../00/;s/.$//' | tr '[
alias quickpwgen="tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1" alias quickpwgen="tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1"
alias mailstop="sudo /etc/init.d/postfix stop && sudo /etc/init.d/dovecot stop && sudo /etc/init.d/amavis stop && sudo /etc/init.d/mysql stop && sudo /etc/init.d/saslauthd stop && sudo /etc/init.d/spamassassin stop" alias mailstop="sudo /etc/init.d/postfix stop && sudo /etc/init.d/dovecot stop && sudo /etc/init.d/amavis stop && sudo /etc/init.d/mysql stop && sudo /etc/init.d/saslauthd stop && sudo /etc/init.d/spamassassin stop"
alias mailstart="sudo /etc/init.d/postfix start && sudo /etc/init.d/dovecot start && sudo /etc/init.d/amavis start && sudo /etc/init.d/mysql start && sudo /etc/init.d/saslauthd start && sudo /etc/init.d/spamassassin start" alias mailstart="sudo /etc/init.d/postfix start && sudo /etc/init.d/dovecot start && sudo /etc/init.d/amavis start && sudo /etc/init.d/mysql start && sudo /etc/init.d/saslauthd start && sudo /etc/init.d/spamassassin start"
alias ls="ls --color=auto"
if [ "$DISABLE_LS_COLORS" != "true" ]
then
# Find the option for using colors in ls, depending on the version: Linux or BSD
ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
fi

View File

@ -8,3 +8,6 @@ export HISTSIZE=1000
export SAVEHIST=1000 export SAVEHIST=1000
# location of history # location of history
export HISTFILE=~/.zhistory export HISTFILE=~/.zhistory
# grep options
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'