Vixual / 122 posts / tags / 48 comments / feed / comments feed /
Search:

Posts Tagged ‘bash’


以下是我常用的 .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"