You are not logged in.
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
here the pic https://cms.mdomann.tk/xfce.png
Offline
does this problem happen when your .bashrc file is renamed to some other name?
Offline
use "code" instead of "quote" in the [] for showing file contents.
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 524.14 KiB (Peak: 531.76 KiB) ]