Skip to content

Instantly share code, notes, and snippets.

@isayme
Last active December 10, 2015 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isayme/4502036 to your computer and use it in GitHub Desktop.
Save isayme/4502036 to your computer and use it in GitHub Desktop.
Linux setting
export PS1='\[\e[36;1m\]\u\[\e[01;30m\]@\[\e[32;1m\]\h:\[\e[01;35m\]\w \$ \[\e[0m\]'
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
@isayme
Copy link
Author

isayme commented Jan 10, 2013

PS1 变量必须用单引号,用双引号的话”$"就不起作用。

@isayme
Copy link
Author

isayme commented Jul 27, 2013

LESS_TERMCAP_* 是为了man信息高亮显示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment