Posts Tagged ‘ bash

常用的 .bashrc 设定

以下是我常用的 .bashrc 设定:

#格式化 ls 的颜色
alias ls='ls -F --color'
#关闭喇叭的 "BEEP" 声
setterm -bfreq
#用上/下键搜寻执行过的指令
bind '"\x1b\x5b\x41":history-search-backward'
bind '"\x1b\x5b\x42":history-search-forward'
#其它
alias h='history 25'
alias vi='vim'
#设定提示字符的颜色
PS1="\e[0;32m[\u@\h \W]$ \e[m"

return top