bashrc: Merge-in new system file

This commit is contained in:
2024-07-25 11:00:12 +02:00
parent 89579e1ab9
commit 0f98686a65

2
bashrc
View File

@@ -15,6 +15,7 @@ if [ -z "$BASHRCSOURCED" ]; then
# are we an interactive shell?
if [ "$PS1" ]; then
if [ -z "$PROMPT_COMMAND" ]; then
declare -a PROMPT_COMMAND
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
@@ -39,6 +40,7 @@ if [ -z "$BASHRCSOURCED" ]; then
shopt -s histappend
# Turn on checkwinsize
shopt -s checkwinsize
# Change the default prompt string
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
# You might want to have e.g. tty in prompt (e.g. more virtual machines)
# and console windows