mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
{bash,zsh}rc: add a newline before each command
To workaround silly files that don't end with a newline
This commit is contained in:
parent
ef1fb81709
commit
bf37d602a8
@ -62,18 +62,18 @@ if [ -n "$force_color_prompt" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$color_prompt" = yes ]; then
|
if [ "$color_prompt" = yes ]; then
|
||||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
PS1='\n${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||||
else
|
else
|
||||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
PS1='\n${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||||
fi
|
fi
|
||||||
unset color_prompt force_color_prompt
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
# Red colour for root, thanks nyuszika7h
|
# Red colour for root, thanks nyuszika7h
|
||||||
# Check if we're root
|
# Check if we're root
|
||||||
if [[ $EUID == 0 ]]; then
|
if [[ $EUID == 0 ]]; then
|
||||||
PS1='\033[1;31m\u@\h:\w\$\033[0m '
|
PS1='\n\033[1;31m\u@\h:\w\$\033[0m '
|
||||||
else
|
else
|
||||||
PS1='\033[1;32m\u@\h:\w\$\033[0m '
|
PS1='\n\033[1;32m\u@\h:\w\$\033[0m '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If this is an xterm set the title to user@host:dir
|
# If this is an xterm set the title to user@host:dir
|
||||||
|
Loading…
Reference in New Issue
Block a user