Edit PS1
This commit is contained in:
parent
700a4ecf14
commit
d8d2a5f7ef
1 changed files with 3 additions and 3 deletions
|
@ -6,10 +6,10 @@ umask 022
|
||||||
|
|
||||||
# use nicer PS1 for bash and busybox ash
|
# use nicer PS1 for bash and busybox ash
|
||||||
if [ -n "$BASH_VERSION" -o "$BB_ASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" -o "$BB_ASH_VERSION" ]; then
|
||||||
PS1='\h:\w\$ '
|
PS1='[%n@%m %~]%# '
|
||||||
# use nicer PS1 for zsh
|
# use nicer PS1 for zsh
|
||||||
elif [ -n "$ZSH_VERSION" ]; then
|
elif [ -n "$ZSH_VERSION" ]; then
|
||||||
PS1='%m:%~%# '
|
PS1='[%n@%m %~]%# '
|
||||||
# set up fallback default PS1
|
# set up fallback default PS1
|
||||||
else
|
else
|
||||||
: "${HOSTNAME:=$(hostname)}"
|
: "${HOSTNAME:=$(hostname)}"
|
||||||
|
@ -31,4 +31,4 @@ for script in /etc/profile.d/*.sh ; do
|
||||||
. "$script"
|
. "$script"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
unset script
|
unset script
|
||||||
|
|
Loading…
Reference in a new issue