[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gemeinsame History für Konsolen



>>>>> "Thomas" == Thomas Braun <thomas@akwgegner.de> writes:

Thomas> Guten Abend zusammen, was mich gerade wieder mal etwas stört ist
Thomas> folgendes: Wenn ich unter KDE ein Befehlsfenster starte und in diesem
Thomas> mehere Fenster offen habe verwaltet er anscheinend getrennte
Thomas> Befehlsspeicher für jedes Befehlsfenster.  Einen Befehl den ich in
Thomas> der ersten eingebe kann ich aus der zweiten mittels
Thomas> history-search-backward (das habe ich in der /etc/inputrc drin) nicht
Thomas> finden.  Der Verlaufsspeicher ist auf unbegrenzte Anzahl der Zeilen
Thomas> eingestellt.

Thomas> [...]


Das Verhalten ist Shell-abhängig, unter Annahme, dass Du die Bash verwendest:

Aus bash(1)
     [...]
     history [n]
     history -c
     history -d offset
     history -anrw [filename]
     history -p arg [arg ...]
     history -s arg [arg ...]
          With no options, display the command history list  with
          line  numbers.   Lines  listed with a * have been modi-
          fied.  An argument of n lists only the  last  n  lines.
          If  filename is supplied, it is used as the name of the
          history file; if not, the value of  HISTFILE  is  used.
          Options, if supplied, have the following meanings:
          -c   Clear  the  history  list  by  deleting  all   the
               entries.
          -d offset
               Delete the history entry at position offset.
          -a   Append the ``new'' history  lines  (history  lines
               entered  since  the  beginning of the current bash
               session) to the history file.
          -n   Read the history lines not already read  from  the
               history file into the current history list.  These
               are lines appended to the history file  since  the
               beginning of the current bash session.
          -r   Read the contents of the history file and use them
               as the current history.
          -w   Write the current history  to  the  history  file,
               overwriting the history file's contents.
          -p   Perform history substitution on the following args
               and  display  the  result  on the standard output.
               Does not store the results in  the  history  list.
               Each  arg must be quoted to disable normal history
               expansion.
          -s   Store the args in the history  list  as  a  single
               entry.   The  last  command in the history list is
               removed before the args are added.

     [...]

Hth -- Peter

-- 
Peter.Weiss@consol.de                         ConSol* Software GmbH
Phone  +49 89 45841-100                       Consulting & Solutions
Mobile +49 177 6040121                        Franziskanerstr. 38
http://www.consol.de                          D-81669 München



Reply to: