Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bash-History: Bei gleichzeitigen Sessions nichts vergessen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Deutsche Dokumentation
View previous topic :: View next topic  
Author Message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Tue Apr 24, 2007 2:51 pm    Post subject: Bash-History: Bei gleichzeitigen Sessions nichts vergessen Reply with quote

Moin zusammen,

ich hab einen kleinen Tipp gefunden, damit, wenn man zwei Bash-Sessions gleichzeitig laufen hat, nicht die History der einen ignoriert und vergessen wird.
Ich fand das schon immer nervig und wollte das jetzt einfach mal veröffentlichen (Orginal: http://www.ukuug.org/events/linux2003/papers/bash_tips/)

in die ~/.bashrc folgendes schreiben:
Code:
shopt -s histappend
PROMPT_COMMAND='history -a'


Das wars schon.

Tschö mit ö
Manuel
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Tue Apr 24, 2007 5:32 pm    Post subject: Reply with quote

Geil, das suche ich schon seit Ewigkeiten. TOP!:D
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Tue May 22, 2007 1:58 pm    Post subject: Reply with quote

Mir graust. Ich verwende sechs Desktops mit je acht Terminals. Die history könnte ETWAS unübersichtlich werden :twisted:

Aber wenigstens wäre alles gesichert :wink:

Danke für den Tip.
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Deutsche Dokumentation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum