Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

memeplex/base16-prompt-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base16 for prompt-toolkit (and ipython!)

Clone and pip install this, or put it somewhere such that the directory base16 is in (or at least is symlinked from) your PYTHONPATH.

Then import your preferred theme using importlib:

theme = importlib.import_module('base16.base16-default-dark')

Here is a complete example that configures ipython with default-dark:

theme = importlib.import_module('base16.base16-default-dark')
c.TerminalInteractiveShell.highlighting_style = theme.Base16Style
c.TerminalInteractiveShell.highlighting_style_overrides = theme.overrides

This is how it looks side-to-side with vim base16:

Screenshot: dwm + urxvt + vim + ipython + prompt-toolkit

I strived to make prompt-toolkit themes resemble vim themes as much as possible, but not all syntax categories of vim are present in prompt-toolkit.

That's it!

About

Base16 templates for prompt-toolkit and ipython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •