|
|
bashrc下面输入
alias ls='ls --color=auto'
eval `dircolors -b`
export GREP_CORLOR="1;33"
alias grep='prep --corlor=auto'
PS1='\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] '
bash_profile下面输入
#!/bin/bash
#This file is sourced by bash when you log in interactively.
[[ -f ~/.bashrc ]] && source ~/.bashrc
参考:http://wiki.archlinux.org/index. ... le_prompt_.28PS1.29
注意看英文,英文不好的话,中英文对照,英文的比较新,准确。 |
|