You are not logged in.
Pages: 1
hi! how can i make my terminals history auto clear at logout? i use gnome terminal (if that info helps) and i dont have .bash_logout file at my home. thanks
Last edited by manolos (2009-09-18 10:25:46)
Offline
why don't you try to make a .bash_logout and putting history -c in ?
Offline
try to write this in your ~/.bashrc :
unset HISTFILE
If HISTFILE is unset, or if the history file is unwritable, the history is not saved.
take time to daydream, inspiration comes ...
Offline
thank you both! ill try to make the bash_logout file!
Offline
try to write this in your ~/.bashrc :
unset HISTFILE
man bash wrote:If HISTFILE is unset, or if the history file is unwritable, the history is not saved.
where i have to write "unset HISTFILE"? there is a code:
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
do i have to write it after all that code?
Offline
^^
shouldn't matter where you insert it
Offline
^^
shouldn't matter where you insert it
ok! thanks! its working
Offline
Pages: 1