当使用bash的时候,编辑/etc/bashrc或~/.bash_profile
当使用ksh的时候,编辑~/.profile
增加如下语句:
PS1=`hostname`@`whoami`'[$PWD]> '
export PS1
stty erase ^H
stty -istrip cs8
set -o vi
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22049049/viewspace-1023863/ ,如需转载,请注明出处,否则将追究法律责任。