bashrc: Merge-in new system file

This commit is contained in:
2024-07-25 11:00:12 +02:00
parent 76c0e2c82c
commit 1d34037dff

2
bashrc
View File

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