Skip to main content
Post Closed as "Duplicate" by AdminBee, Quasímodo, telcoM, Drav Sloan, 111---
added 322 characters in body
Source Link
origami
  • 69
  • 1
  • 10

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like How do I close a terminal without saving the history?, however I found nothing helpful for my situation. The difference here is that i do need the history file while the terminal is running, setting unset HISTFILE disable the history file after that command is ran and does not clear the history file itself. Note that the history file is needed while the session is running but when it get closed it need to be cleared.

How can we clear the bash history when the terminal gets closed?

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like How do I close a terminal without saving the history?, however I found nothing helpful for my situation.

How can we clear the bash history when the terminal gets closed?

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like How do I close a terminal without saving the history?, however I found nothing helpful for my situation. The difference here is that i do need the history file while the terminal is running, setting unset HISTFILE disable the history file after that command is ran and does not clear the history file itself. Note that the history file is needed while the session is running but when it get closed it need to be cleared.

How can we clear the bash history when the terminal gets closed?

deleted 56 characters in body
Source Link
muru
  • 78.1k
  • 16
  • 213
  • 319

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like how-do-i-close-a-terminal-without-saving-the-historyHow do I close a terminal without saving the history?, however I found nothing helpful for my situation.

How can we clear the bash history when the terminal gets closed?

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like how-do-i-close-a-terminal-without-saving-the-history, however I found nothing helpful for my situation.

How can we clear the bash history when the terminal gets closed?

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like How do I close a terminal without saving the history?, however I found nothing helpful for my situation.

How can we clear the bash history when the terminal gets closed?

Became Hot Network Question
grammar
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

Using KDE Konsole as a bash terminal application I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often do use the terminal for a long time and do clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like how-do-i-close-a-terminal-without-saving-the-history one, buthowever I found nothing helpful in thisfor my situation.

How can we clear the bash history when the terminal getgets closed?

Using KDE Konsole as a bash terminal application I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often do use the terminal for a long time and do clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found similar questions on how to clear the history or how to disable it like how-do-i-close-a-terminal-without-saving-the-history one, but nothing helpful in this situation.

How can we clear the bash history when the terminal get closed?

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.

I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.

I found a similar questions on how to clear the history or how to disable it like how-do-i-close-a-terminal-without-saving-the-history, however I found nothing helpful for my situation.

How can we clear the bash history when the terminal gets closed?

added 251 characters in body
Source Link
origami
  • 69
  • 1
  • 10
Loading
improve accessability
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113
Loading
Source Link
origami
  • 69
  • 1
  • 10
Loading