diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b2c9b76..d129dc3 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -185,6 +185,7 @@ autoload colors zsh/terminfo # app-shells/over-env source /usr/lib/over/env/prompt-init +export PYTHONSTARTUP="/usr/lib/over/env/python-startup.py" # keyboard stuff bindkey "\e[1~" beginning-of-line diff --git a/lib/python-startup.py b/lib/python-startup.py new file mode 100755 index 0000000..2fc0c01 --- /dev/null +++ b/lib/python-startup.py @@ -0,0 +1,13 @@ +#! /usr/bin/env python3 +# encoding: utf-8 + +import datetime +import sys + +try: + import over + sys.ps1 = over.text.render(">>> <.>") + sys.ps2 = over.text.render("... <.>") +except: + sys.ps1 = '\x1b[1;32m>>> \x1b[0m' + sys.ps2 = '\x1b[0;32m... \x1b[0m'