PDA

View Full Version : [ubuntu] unset HISTSIZE .bashrc



ForgivenByJC
January 7th, 2010, 07:22 PM
If I put in /etc/profile or ~/.bashrc
export HISTSIZE=10000
export HISTFILESIZE=10000and reboot, then from gnome-terminal
$: echo $HISTSIZE
10000
$: echo $HISTFILESIZE
10000
$: unset HISTSIZE
$: unset HISTFILESIZE
$: echo $HISTSIZE

$: echo $HISTFILESIZE

$:But if I change /etc/profile or ~/.bashrc to
unset HISTSIZE
unset HISTFILESIZEthey revert to 500. How can I stop them from going to the default when unset in /etc/profile or ~/.bashrc?

SalahTr
January 8th, 2010, 03:20 PM
How can I stop them from going to the default when unset in /etc/profile or ~/.bashrc?
Why do you want that :?: if for disabling command history you could use :

set +o history

ForgivenByJC
January 13th, 2010, 05:33 PM
I am trying to unlimit HISTSIZE and HISTFILESIZE. Will unset not do this?