LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-18-2004, 06:16 PM   #1
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
Want to increase max size of .bash_history


And i found you can do that by
HISTSIZE=10000

but I'm assming this will be lost after a reboot

where are the history variables set? (so i can change it perminantly)
 
Old 01-18-2004, 06:23 PM   #2
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
HISTSIZE is environment variable. So you can do that in your profile. Depending on what shell you use.
~/.profile
or
~/.bash_profile
or
~/.zprofile

etc.
 
Old 01-18-2004, 06:35 PM   #3
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
And dont forget to export this variable (like all other environmental variables) if you haven't looked on your profile yet do that. you'll figure that out.

also. I want to make a comment on the history. Quite a few of my friends are pretty paranoid people regarding the security of the boxes they own and run. When they all used bash some time ago. They used to symlink ~/.bash_history to /dev/null. Nowdays they all use Z shell (zsh) and in the login shell they run they unset $HISTFILE variable.
This gives you possibility to have history during the session but everything is gone after you logout.
 
Old 01-18-2004, 11:36 PM   #4
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
Ok, i was considering putting it in .bashrc since all that sort of sutff is there, and I don't ahve a .bash_profile

But I figured it would be easier, so I created ~/.bash_profile
With
HISTSIZE=10000
export $HISTSIZE

And thanks, but I'm not paranoid...and i like having a lot of space, becuase I find i always forget how to do something, and it is already out of my history

Thanks
 
Old 01-19-2004, 01:12 AM   #5
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Tyir,
if you did not have .bash_prfile before in your $HOME please put in the beginning of ~/.bash_profile:

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

you need this to source .bashrc and get all your aliases and functions.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase apache max connections? newlinuxnewbie Linux - General 5 08-29-2008 03:53 AM
fond size increase. bruse Linux - Newbie 1 07-11-2005 08:27 AM
How do I increase the size of a Reiserfs? lothario Linux - Software 6 02-27-2005 08:07 PM
increase max cuncurrent connections eyalr Linux - Networking 1 01-27-2005 12:39 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration