This may indeed happen if you've used the built-in terminal in Dolphin, and it did also for a while happen after using Octopi. It shouldn't ─ and there's a way to prevent that from happening ─ but out-of-the-box, it does, unfortunately.
The shell normally does not append commands that start with a space to the command history ─ the
cd commands used by Dolphin are prefixed with a space ─ but apparently Manjaro does not enable this filtering by default. Perhaps this is something to be considered for the future install images ─ pinging @philm.
Here's how to avoid it... Edit your
~/.bash_profile and make sure you add the following...
HISTIGNORE='[ \t]*:cd /:export TERM=xterm:clear:sudo /usr/lib/octopi/octopi-helper -t:bash -c "/tmp/.qt_temp_octopi_*"'
export HISTCONTROL HISTIGNORE HISTSIZE
In order to clean out your Bash command history, issue the following command...
history -c && > ~/.bash_history