Terminal: save history?
Mike Massonnet
mmassonnet at gmail.com
Mon Jul 17 14:20:01 CEST 2006
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
--
http://massonnet.org/ Mike Massonnet (mmassonnet) ,-.
, ( {o\
GnuPG 0--" 0xF8C80F97 {`"=,___) (`~
C4DA 431D 52F9 F930 3E5B 3E3D 546C 89D9 F8C8 0F97 \ ,_.- )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20060717/6cb323af/attachment.pgp>
More information about the Xfce
mailing list