This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Prevent Dolphin terminal history to register "cd" commands

Tags: None
(comma "," separated)
kursus
Registered Member
Posts
4
Karma
0
Hello,

I have troubles with how Dolphin terminal handles directory changes. It keeps interpreting GUI navigation with "cd" commands.

Ex :

- Open dolphin, type "ls" in terminal
- Navigate to another folder (using Dolphin, not terminal)
- Now terminal history is full of "cd" commands, need to go up several times to find the original "ls" command.

Is there any way to prevent this ?

Thank you
luebking
Karma
0
the history is a feature of the textshell (being remote controlled by dolphin)
you can filter it to ignore command patterns, but that applies to *all* terminals (unless there's a way to automatically pass commands to the dolphin terminal, don't know at hand)

http://unix.stackexchange.com/questions ... ur-history
kursus
Registered Member
Posts
4
Karma
0
Thanks for your advice !

Good news is that Dolphin adds a space before the command (see https://bugs.kde.org/show_bug.cgi?id=204039) so it's possible to specifically target them.

For those interested add in your ~/.bashrc :
Code: Select all
## Filter Dolphin "cd" commands
HISTIGNORE=" cd *"

then
Code: Select all
source  ~/.bashrc

Voilà !


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]