18 Sep 01:13
history formatting a la iPython
From: sam reckoner <sam.reckoner <at> gmail.com>
Subject: history formatting a la iPython
Newsgroups: gmane.comp.shells.zsh.devel
Date: 2008-09-17 23:17:03 GMT
Expires: This article expires on 2008-10-02
Subject: history formatting a la iPython
Newsgroups: gmane.comp.shells.zsh.devel
Date: 2008-09-17 23:17:03 GMT
Expires: This article expires on 2008-10-02
The iPython interpreter does something very clever with history that zsh might like. When starting a new iPython session, all history items are labeled starting from 1. However, history items prior to this are labeled with a leading zero. This is useful, because my current zsh history starts with 1013, so accessing prior commands from the current session means typing in a 4 digit number whereas with ipython, I would need only maybe 2 digits and could still get at earlier history elements via the leading zero. just an idea. thanks.
RSS Feed