Hey ping,

Dan led you to the right place and you almost found the solution but you
need to add one more thing for the desired result.

You really need to add this to your .bashrc:

PROMPT_COMMAND='history -a; history -r'


This appends and rereads the history file again. history -a appends the
commands to history but you still need read the history file back in to
your current terminal or else you wont see them.

If you don't run history -r then you wont actually see the other commands
that were appended until you exit the terminal or run history -r manually
each time :oP

Bryan

On Tue, Oct 16, 2012 at 1:18 PM, ping <[email protected]> wrote:

>
>
> On 10/16/2012 12:07 PM, Daniel Eggleston wrote:
>
>> Each terminal session saves its own, which is written out on closing
>> (and read in by new sessions).
>>
>> See here to change this behavior:
>> http://northernmost.org/blog/**flush-bash_history-after-each-**command/<http://northernmost.org/blog/flush-bash_history-after-each-command/>
>>
>> On Tue, Oct 16, 2012 at 10:55 AM, ping <[email protected]
>> <mailto:songpingemail@gmail.**com <[email protected]>>> wrote:
>>
>>
> thanks, I just put that line into my bashrc
> export PROMPT_COMMAND='history -a'
>
> and I'll keep an eye on it and see how it goes.
>
> regards
> ping
>
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to 
> linuxusersgroup@googlegroups.**com<[email protected]>
> To unsubscribe, send email to linuxusersgroup+unsubscribe@**
> googlegroups.com <linuxusersgroup%[email protected]>
> For more options, visit our group at http://groups.google.com/**
> group/linuxusersgroup <http://groups.google.com/group/linuxusersgroup>
> References can be found at: http://goo.gl/anqri
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor
> http://cdn.fsdev.net/List-**Rules.pdf<http://cdn.fsdev.net/List-Rules.pdf>
> )
>



-- 
A healthy diet  includes Linux, Linux, and more Linux.

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to