HISTTIMEFORMAT: wie definieren in zshrc?

L

lazybaer

Aktives Mitglied
Thread Starter
Dabei seit
08.02.2006
Beiträge
172
Reaktionspunkte
3
Tag allerseits

In bash verwendete ich HISTTIMEFORMAT="[%d%b] " um in der History Tag und Monat anzuzeigen. In zsh / zshrc ist mir dies auf keine Art und Weise gelungen (HIST_STAMPS="%d%b" und alias hi='history 1 -1' funktionieren nicht.

Zu wissen ist noch, dass ich weder oh-my-zsh noch iterm2 verwende, da ich bei den Standard-Bordmitteln bleiben will.

Gibt es da eine Lösung?

Danke und Gruss
Lazybaer
 
man zshoptions oder man zshbuiltins
müsste wohl auf
Code:
  -t fmt prints time and date stamps in the given format; fmt is formatted
        with the strftime function with the  zsh extensions described for
        the %D{string} prompt format in the section EXPANSION OF PROMPT
        SEQUENCES in zshmisc(1).  The resulting formatted string must be no
        more than 256 characters or will not be printed.
 
Zurück
Oben Unten