2012-03-08 17:12:55 +00:00
|
|
|
alias rmdir='rm -r'
|
|
|
|
alias sl='ls'
|
|
|
|
alias myip="wget -qO- ifconfig.me/ip"
|
|
|
|
alias memoryhog="ps aux | sort -nk +4 | tail"
|
|
|
|
alias stripext="ls -1 | sed 's/\(.*\)\..*/\1/'"
|
2012-03-09 01:55:07 +00:00
|
|
|
alias macgen="openssl rand -hex 6 | sed 's/\(..\)/\1:/g;s/../00/;s/.$//' | tr '[a-z]' '[A-Z]'"
|
2012-05-15 01:30:46 +00:00
|
|
|
alias quickpwgen="tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1"
|
2012-06-02 22:19:28 +00:00
|
|
|
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"
|
2012-06-10 12:58:44 +00:00
|
|
|
|
|
|
|
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
|