mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
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:
parent
6526caa1c0
commit
e188ded31f
2 changed files with 213 additions and 0 deletions
17
plugins/python/python.plugin.zsh
Normal file
17
plugins/python/python.plugin.zsh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue