Commit graph

3 commits

Author SHA1 Message Date
Anthony Scopatz
e6e5ce7abd added teepty 2015-08-23 14:09:10 -04:00
anula
640c3991ab Fix bugs in LimitedFileHistory (plus tests) and move it to different file.
* Move LimitedFileHistory from history.py to prompt_toolkit_history.py
because it is needed only for prompt_toolkit and requires prompt_toolkit.
* Add instalation of prompt_toolkit to .travis.yml
* Update docs hooks
2015-05-18 19:33:37 +02:00
anula
c56c2c8330 Add prompt_toolkit based shell.
This adds prompt_toolkit based shell in addition to existing readline
shell. By default regular readline shell is loaded, to use
prompt_toolkit version you need to add:

    $PROMPT_TOOLKIT_SHELL = True

to your ~/.xonshrc
Another nice thing to add there is:

    from xonsh.pyghooks import XonshLexer
    $HIGHLIGHTING_LEXER = XonshLexer

that adds highlighting of shell input (may be a bit annoying sometimes).

There is no key for inserting indentation yet, it will be improved in the
future.
2015-05-16 19:34:44 +02:00