modifying ls alias to be more *nix friendly and adding grep options
This commit is contained in:
parent
5d662e6283
commit
6c550ab9a7
|
@ -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
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
#default apps
|
#default apps
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export PAGER="most"
|
export PAGER="most"
|
||||||
#history stuff
|
# history stuff
|
||||||
# number of lines kept in history
|
# number of lines kept in history
|
||||||
export HISTSIZE=1000
|
export HISTSIZE=1000
|
||||||
# number of lines saved in the history after logout
|
# number of lines saved in the history after logout
|
||||||
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'
|
||||||
|
|
Loading…
Reference in New Issue