1. cat <<EOF>>/etc/bashrc
    2. ### by author:albert-dong
    3. alias grep='grep --color=auto'
    4. alias ls='ls -hF --color=auto'
    5. alias la='ls -ahF --color=auto'
    6. alias dir='ls --color=auto --format=long'
    7. alias ll='ls -l --color=auto'
    8. alias p100='ping -c 100 -i 0.01'
    9. alias tarl='f(){ tar -tvf \$1;};f'
    10. alias size='f(){ du -sh \$1* | sort -hr; }; f'
    11. alias cd='f(){ cd \$1;ls -lrtkh;};f'
    12. alias nets='netstat -ntlp'
    13. ### 历史记录
    14. HISTSIZE=
    15. HISTFILESIZE=
    16. USER_IP=\`who -u am i 2>/dev/null| awk '{print \$NF}'|sed -e 's/[()]//g'\`
    17. export HISTTIMEFORMAT="%F %T [\${USER_IP}] \`whoami\`: "
    18. alias cman='man -M /usr/share/man/zh_CN'
    19. alias ll='ls -l --color=auto'
    20. export PS1='\[\033[1;33;1m\][\[\033[0;32;1m\]\u@\h \[\033[1;33;1m\]\W\[\033[1;33;1m\]]\[\033[1;33;1m\]\\$\[\033[0m\]'
    21. #export PS1="[\\u@\\h \\W \\A]\\$ "
    22. export HISTCONTROL=ignorespace:erasedups:ignoredups
    23. HISTIGNORE="&:[ ]*:exit:chattr:ls:bg:fg:history:clear:vim:chattr:vi:mysql:useradd:chpasswd"
    24. #eval "\$(thefuck --alias)"
    25. EOF