1 |
> > Try to adjust those variables: |
2 |
> > |
3 |
> > HISTFILE=/home/your_account/.bash_history |
4 |
> > HISTFILESIZE=500 |
5 |
> > HISTSIZE=500 |
6 |
> |
7 |
> I had to run the above from root and sure enough, they |
8 |
> were written into my home dir .bash_history, along |
9 |
> with the exit command to get back to user-space. So I |
10 |
> ran a series of ls's just to check but they don't |
11 |
> appear. |
12 |
> |
13 |
> So what now? |
14 |
|
15 |
The environment variables only apply to the scope that they were set in. |
16 |
When you set them as root they only applied to the root session; exiting |
17 |
back to user space removed them. |
18 |
|
19 |
You want to delete the current .bash_history file as it is probably only |
20 |
writable by root. |
21 |
|
22 |
Then set the same environment variables in your current shell and they |
23 |
should stick. |
24 |
|
25 |
When they work add them to your .bashrc file. |
26 |
|
27 |
|
28 |
-- |
29 |
gentoo-user@g.o mailing list |