Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-11-17 11:16:49

Micha-Btz
Member
Registered: 2015-05-12
Posts: 8

Problems with xfce4-terminal and bash history

Hi there,

I have a problem when I use the bash history feature in the xfce4 terminal. When I scroll in the bash history with arrow up key on the keyboard, then it shows me the last command always twice. I have added a pic to show it.

I have tried clear the config files from the terminal, but it doesn't help. Maybe there is a mistake in my bashrc, someone an idea to get rid of it?

Thanks Micha 

cat .bashrc |grep history
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
source ~/.dotfiles/bash-git-prompt/gitprompt.sh
# ~/.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
if [ -f ~/.bash_aliases_root ]; then
     . ~/.bash_aliases_root
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
source ~/.bash_functions
# HSTR configuration - add this to ~/.bashrc
shopt -s histappend              # append new history items to .bash_history
# don't put duplicate lines in the history. See bash(1) for more options
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a"
shopt -s histappend              # append new history items to .bash_history
export HISTFILESIZE=10000        # increase history file size (default is 500)
export HISTSIZE=${HISTFILESIZE}  # increase history size (default is 500)
# ensure synchronization between Bash memory and history file
export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}"
# don't put duplicate lines in the history. See bash(1) for more options
HISTIGNORE="c:cd:pwd:clear:exit:h:h10:hg *:history*:lg:l:ls:ls -l:ll:lt:va:sa"

Offline

#2 2019-11-17 11:18:53

Micha-Btz
Member
Registered: 2015-05-12
Posts: 8

Re: Problems with xfce4-terminal and bash history

Offline

#3 2019-11-24 09:13:20

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 482

Re: Problems with xfce4-terminal and bash history

does this problem happen when your .bashrc file is renamed to some other name?

Offline

#4 2019-11-24 09:15:49

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 482

Re: Problems with xfce4-terminal and bash history

use "code" instead of "quote" in the [] for showing file contents.

Offline

Board footer

Powered by FluxBB