我的自定义bashrc
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我的自定义bashrc相关的知识,希望对你有一定的参考价值。
# # /etc/bash.bashrc # # This file is the systemwide bashrc file. While most of the # environment is preserved when running an interactive shell # the PS[1-4] variables, aliases and functions are reset. # # When running a non-login shell, apply the following settings: # - Prompt defaults (PS[1-4], PROMPT_COMMAND) # - bash_completion if it exists # - source /etc/bash.bashrc.local # Shell Style #PS1='[[email protected]h W]$ ' # Old, colorless prompt. #PS1='[e[1;34m][[email protected]h W]$[e[0m] ' # New, colorful, blue prompt. #PS1='[e[1;32m][[email protected]h W]$[e[0m] ' # New, colorful, green prompt. PS1='[e[1;34m][[e[1;31m]u[e[1;34m]@[e[1;31m]h [e[1;34m]w [e[1;32m]## [e[1;34m]:[e[1;32m] [e[1;34m]]$[e[0m] ' PS2='> ' PS3='> ' PS4='+ ' export PS1 PS2 PS3 PS4 if test "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "xterm-256color" -o "$TERM" = "rxvt" -o "$TERM" = "rxvt-unicode" -o "$TERM" = "xterm-xfree86"; then PROMPT_COMMAND='echo -ne "