存个.bashrc
发表于 : 2012-07-06 11:11
[bash]
# Check for an interactive session
[ -z "$PS1" ] && return
### 别名配置
alias ls='ls -l --color=auto'
alias lsl='ls -l --color=auto'
alias lsla='ls -al --color=auto'
alias df='df -h'
### PS1配置
c_1="\[\e[0m\]"
c0="\[\e[1;30m\]"
c1="\[\e[1;31m\]"
c2="\[\e[1;32m\]"
c3="\[\e[1;33m\]"
c4="\[\e[1;34m\]"
c5="\[\e[1;35m\]"
c6="\[\e[1;36m\]"
c7="\[\e[1;37m\]"
PS1="$c1<$c6\u$c3@$c2\h$c1>[$c4\A$c1]$c3\w$c1\$\n$c3>>$c_1"
### 彩色man配置
#colorful man page
export PAGER="`which less` -s"
export BROWSER="$PAGER"
export LESS_TERMCAP_mb=$'\E[01;34m'
export LESS_TERMCAP_md=$'\E[01;34m'
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;33m'
fortune|cowthink -f tux
[/bash]
# Check for an interactive session
[ -z "$PS1" ] && return
### 别名配置
alias ls='ls -l --color=auto'
alias lsl='ls -l --color=auto'
alias lsla='ls -al --color=auto'
alias df='df -h'
### PS1配置
c_1="\[\e[0m\]"
c0="\[\e[1;30m\]"
c1="\[\e[1;31m\]"
c2="\[\e[1;32m\]"
c3="\[\e[1;33m\]"
c4="\[\e[1;34m\]"
c5="\[\e[1;35m\]"
c6="\[\e[1;36m\]"
c7="\[\e[1;37m\]"
PS1="$c1<$c6\u$c3@$c2\h$c1>[$c4\A$c1]$c3\w$c1\$\n$c3>>$c_1"
### 彩色man配置
#colorful man page
export PAGER="`which less` -s"
export BROWSER="$PAGER"
export LESS_TERMCAP_mb=$'\E[01;34m'
export LESS_TERMCAP_md=$'\E[01;34m'
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;33m'
fortune|cowthink -f tux
[/bash]