This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tab_color --description "Sets the current tab color. Usage: tab_color <r> <g> <b>" | |
echo -ne "\033]6;1;bg;red;brightness;$argv[1]\a" | |
echo -ne "\033]6;1;bg;green;brightness;$argv[2]\a" | |
echo -ne "\033]6;1;bg;blue;brightness;$argv[3]\a" | |
end | |
function tab_nocolor --description "Resets the current tab color." | |
echo -ne "\033]6;1;bg;*;default\a" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
An IPython magic function to pretty-print objects with syntax highlighting. | |
See, "Defining your own magics": | |
http://ipython.org/ipython-doc/stable/interactive/reference.html#defining-your-own-magics | |
For more on Pygments: | |
http://pygments.org/docs/quickstart/ | |
Usage |