mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
Since we always log in as root use a simpler command prompt. And don't store duplicate commands in the bash command history.
12 lines
276 B
Bash
12 lines
276 B
Bash
# 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
|
|
|