blob: 078dbd601f778993d54eb4d3e2e17da7554ac446 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# don't store duplicate entries in the history
export HISTCONTROL=erasedups
# use a simple prompt of host:pwd# (user is always root)
PS1='\h:\w\$ '
# set the terminal title to host:pwd
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}:${PWD}\007"'
;;
esac
|