Added a python plugin, which adds, among others, command completion and editing commands in a texteditor to the python prompt

the plugin sets a provided pythonrc file as the startupscript for the python cli.
This commit is contained in:
Robin Ramael 2011-01-07 15:03:14 +01:00
commit e188ded31f
2 changed files with 213 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# use the ./pythonrc.py file as the rc for the python
# this enables among other things:
# - command completion on <tab>,
# - prettyprinting of long variables
# - a colored prompt
# - editing commands in an editor with '\e'
# to change the editor: set the EDITOR env variable.
PYTHONSTARTUP=$ZSH/plugins/python/pythonrc.py
export PYTHONSTARTUP
#aliases
alias py=python
alias pytohn=python
alias pyton=python
alias py=python
alias py=python