Terminal: save history?
Benjamin Winkel
uzspde at uni-bonn.de
Mon Jul 17 17:09:52 CEST 2006
Thanks!
Mike Massonnet wrote:
> Mon, 17 Jul 2006 10:57:37 +0200 - Benjamin Winkel <uzspde at uni-bonn.de>
> wrote :
>
>> I know that
>> e.g. the bash uses a file ".bash_history". But this is only updated
>> if I close one instance and only the commands of the closed terminal
>> are saved into it.
>>
>
> Put this command in your ~/.bashrc file to append the commands to the
> history instead of overwriting:
> shopt -s histappend
>
> Add this line to write the previous line to disk, this avoids you to
> close the session to write the history to the file:
> PROMPT_COMMAND='history -a'
>
>> Thanks a lot!
>>
>> Benjamin
>
> HTH,
> Mike
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
More information about the Xfce
mailing list