Skip to content

Commit fe81e7f

Browse files
author
vivainio
committed
add %rep and %hist -g to %quickref
1 parent fb88607 commit fe81e7f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎IPython/usage.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# the file COPYING, distributed as part of this software.
77
#*****************************************************************************
88

9-
# $Id: usage.py 2152 2007-03-18 20:13:35Z fperez $
9+
# $Id: usage.py 2683 2007-08-28 20:01:15Z vivainio $
1010

1111
from IPython import Release
1212
__author__ = '%s <%s>' % Release.authors['Fernando']
@@ -618,17 +618,18 @@
618618
cp ${f}.txt $bar : Variable expansion in magics and system commands
619619
files = !ls /usr : Capture sytem command output
620620
files.s, files.l, files.n: "a b c", ['a','b','c'], 'a\nb\nc'
621-
cd /usr/share : Obvious, also 'cd d:\home\_ipython' works
621+
cd /usr/share : Obvious. cd -<tab> to choose from visited dirs.
622622
623623
History:
624624
625625
_i, _ii, _iii : Previous, next previous, next next previous input
626626
_i4, _ih[2:5] : Input history line 4, lines 2-4
627627
exec _i81 : Execute input history line #81 again
628+
%rep 81 : Edit input history line #81
628629
_, __, ___ : previous, next previous, next next previous output
629630
_dh : Directory history
630631
_oh : Output history
631-
%hist : Command history
632+
%hist : Command history. '-g foo' search history for 'foo'
632633
633634
Autocall:
634635

0 commit comments

Comments
 (0)