Mate terminal shows .bashrc syntax on start

– Please Write here your help request –
When I open my Mate Terminal, the PS1 syntax from .bashrc is partialy shown in the console. This was issue was introduced after my latest upgrade. I found a similar issue mentioned in this blog. The solution presented there does not fix my issue.

  • ParrotOS iso in use:
    6.5.0-13parrot1-amd64

  • Application used for flashing the iso:
    sudo parrot -upgrade

  • Logs/Terminal output (use pastebin or similar services):

  • Screenshots:

Below is the file bashrc tixed , only copy this file and paste in your ~/.bashrc and the problem will´be fixed.

If not running interactively, don’t do anything

case $- in
i) ;;
*) return;;
esac

export PATH=~/.local/bin:/snap/bin:/usr/sandbox/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:$PATH

path to personal shell scripts

export PATH=“$HOME/bin:$PATH”

don’t put duplicate lines or lines starting with space in the history.

See bash(1) for more options

HISTCONTROL=ignoreboth

append to the history file, don’t overwrite it

shopt -s histappend

for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

HISTSIZE=1000
HISTFILESIZE=2000

check the window size after each command and, if necessary,

update the values of LINES and COLUMNS.

shopt -s checkwinsize

Set ‘man’ colors

man() {
env
LESS_TERMCAP_mb=$‘\e[01;31m’
LESS_TERMCAP_md=$‘\e[01;31m’
LESS_TERMCAP_me=$‘\e[0m’
LESS_TERMCAP_se=$‘\e[0m’
LESS_TERMCAP_so=$‘\e[01;44;33m’
LESS_TERMCAP_ue=$‘\e[0m’
LESS_TERMCAP_us=$‘\e[01;32m’
man “$@”
}

enable color support of ls and also add handy aliases

if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval “$(dircolors -b ~/.dircolors)” || eval “$(dircolors -b)”
alias ls=‘ls --color=auto’
alias dir=‘dir --color=auto’
alias vdir=‘vdir --color=auto’

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

fi

some more ls aliases

alias ll=‘ls -lh’
alias la=‘ls -lha’
alias l=‘ls -CF’
alias em=‘emacs -nw’
alias dd=‘dd status=progress’
alias _=‘sudo’
alias _i=‘sudo -i’

Alias definitions.

You may want to put all your additions into a separate file like

~/.bash_aliases, instead of adding them here directly.

See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

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

Thank you, this solved my issue!