Ich habe Problme mit meiner eigenen .bashrc. Diese müßte an die Terminals von KDE und Gnome, je an den Standard angpasst werden diese ist 2 Jahre alt. ich wollte auf shopt verzichten
Besonders der Farbbereich bereitet Probleme. Könnt Ihr mir helfen die Bugs zu beseitigen?
Das Listing: .bashrc User Variante. Die Root Variante ist bis auf einen Zeileneintrag im bereich des Aliases und 2 Zeichen dieselbe.
---------------------------------------------------------------------------------------------------------------------------------------------
# ~/.bashrc: executed by bash(1) for non-login shells.
HISTSIZE=15
HISTFILESIZE=15
alias ls='ls --group-directories-first -alF '
alias cls='clear'
alias devicelist="lsblk -fs"
export PS1="\e[1;4;0;36m[\e[1;32m\h\e[49;1;33m://\e[1;32m\u\e[1;33m(\w)\e[1;4;0;36m]\e[0;34m:> \e[0m"
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
----------------------------------------------------------------------------------------------------------------------------------