Skip to content
Browse files

Document globbing in `%history -g <pattern>`.

The pattern is treated as a SQLite GLOB '*<pattern>*', so regular
glob characters like '?' and '*' are available.
  • Loading branch information...
1 parent dfcd243 commit b9c024f6bd268b26f51e29718baaa69517381523 @bfroehle committed Aug 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 IPython/core/magics/
4 IPython/core/magics/
@@ -75,7 +75,9 @@ def history(self, parameter_s = ''):
-g: treat the arg as a pattern to grep for in (full) history.
This includes the saved history (almost all commands ever written).
- Use '%hist -g' to show full saved history (may be very long).
+ The pattern may contain '?' to match one unknown character and '*'
+ to match any number of unknown characters. Use '%hist -g' to show
+ full saved history (may be very long).
-l: get the last n lines from all sessions. Specify n as a single
arg, or the default is the last 10 lines.

0 comments on commit b9c024f

Please sign in to comment.
Something went wrong with that request. Please try again.