在/etc/profile,.profile,.dtprofile中加入
if id | grep root > /dev/null 2>&1 ; then
export PS1='[$LOGIN'"@`hostname` "'$PWD]# '
else
export PS1='[$LOGIN'"@`hostname` "'$PWD]$ '
fi
下面是设置退格键(backspace)和ll别名
stty erase "^?"
alias ll='ls -l'
阅读(1002) | 评论(1) | 转发(0) |