Indrajit Raychaudhuri
bcbaea27af
[python] Detect actual pip
command available for generating completion cache
...
We cannot always assume availability of `pip`, it can be `pip2` or `pip3`
instead. We detect the first available one and use it for generating the
completion cache.
2017-07-22 13:08:33 -05:00
Kaleb Elwert
899c176942
python: add ubuntu locations for virtualenvwrapper.sh
2017-07-10 00:03:36 -07:00
Kaleb Elwert
7d5beeab51
Add comments into each of the function files to make them easier to find
2017-07-06 16:13:36 -07:00
Matthew Crenshaw
ecc34e0051
Move virtualenv auto-switch cwd hook optional loader out from inside unrelated if statement ( #1338 )
2017-06-21 12:30:57 -07:00
Kaleb Elwert
7ae7a0266c
Update python docs to include info on virtualenv auto-switching
2017-05-30 17:29:32 -07:00
Matthew Crenshaw
08e39a587f
Python virtualenv auto workon cwd hook ( #1300 )
...
* Command to activate virtualenvs on changing directory
Enables automatic activation of a virtualenv when jumping into a directory
This is done by looking in the current directory for a file or directory
named `.venv`. If it's not found in the current directory its parents will
also be examined. `.venv` can be either:
1. A file containing the name of a virtualenv found in $WORKON_HOME
2. A directory containing bin/activate (meaning that the directory is
assumed to be a virtualenv.)
If $WORKON_HOME is set it is assumed that virtualenvwrapper is installed
and the `workon` command will be issued.
2017-05-30 17:26:18 -07:00
Kaleb Elwert
2794f95d3e
Use the lazy-loaded version of virtualenvwrapper if available
...
This shouldn't cause problems for anyone and should improve startup times for
anyone using python with virtualenvwrapper because it will wait for the first
command to load rather than right away.
2017-05-02 10:08:06 -07:00
Kaleb Elwert
1050a0a290
Add better support for pyenv virtualenvs
2017-05-01 01:04:16 -07:00
Indrajit Raychaudhuri
4f87376b50
Add support for 'pip', 'pip2', 'pip3' completion
...
Since `pip completion --zsh` might be slow, we cache it beforehand.
The implementation is along the lines of 'npm' completion in 'node' module.
2017-04-23 23:03:53 -05:00
Kaleb Elwert
7011031a87
Don't use a deprecated argument as a python example
...
Thanks to @jeffwidman for pointing this out
Closes #1141
2017-04-13 03:02:07 -07:00
Calvin Smith
a7729561e8
Add support for skipping VIRTUALENVWRAPPER init in modules/python ( #598 )
...
* Support skip-virtualenvwrapper-init zstyle in python module to avoid auto-sourcing of virtualenvwrapper.sh
* Don't overwrite the WORKON_HOME env var if the user has already set it
2017-04-03 23:06:02 -07:00
Humberto Morales
fea08d4e50
[ Fix #669 ] Do not use lazy virtualenvwrapper
...
Lazy virtualenvwrapper completion crashes Zsh.
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-10-10 18:35:33 -04:00
Sorin Ionescu
a84ac5b002
Only one newline at end of file
2014-10-09 23:38:15 -04:00
Arthur Noel
bf9dbfd5b9
Support $PYTHONUSERBASE per PEP 370
...
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-04-03 17:55:35 -04:00
Sorin Ionescu
459238b2bb
Replace pythonz with pyenv
...
Depending on Python to manage Python is silly.
2013-08-20 08:21:17 -04:00
Sorin Ionescu
e5de305157
[ Fix #383 ] Do not set $MANPATH
...
man dynamically searches for man pages based on $PATH.
2013-01-28 17:34:55 -05:00
Sorin Ionescu
b36d98e431
Fix the name of the theme setup function in READMEs
2012-10-02 13:01:46 -04:00
Sorin Ionescu
f12c24e76e
Rename python-info zstyle patterns
2012-10-02 12:47:32 -04:00
Sorin Ionescu
7d68d3ff52
[ Fix #297 ] Check for pythonz before returning
2012-09-25 13:04:06 -04:00
Sorin Ionescu
ac04921afa
Clarify info functions descriptions
2012-09-06 23:17:38 -04:00
Sorin Ionescu
eceef765b7
Move theming documentation into its own section
2012-09-06 22:39:14 -04:00
Sorin Ionescu
fb9a20591f
[ Fix #197 ] Rebrand as Prezto
...
Conflicts:
README.md
runcoms/zshenv
2012-09-03 16:51:27 -04:00
Sorin Ionescu
afae737b78
Document virtualenvwrapper configuration variables
2012-09-03 11:29:16 -04:00
Sorin Ionescu
f8689401de
Set the virtualenvwrapper $WORKON_HOME variable
2012-09-03 11:29:08 -04:00
Sorin Ionescu
6e664690ef
Use the lazy virtualenvwrapper
2012-09-03 10:37:56 -04:00
Sorin Ionescu
98c545a102
[ Fix #248 ] Replace virtualenv_info with python-info
...
Conflicts:
modules/python/README.md
2012-09-03 10:34:41 -04:00
Sorin Ionescu
1057801208
[ Fix #218 ] Add support for pythonz
2012-09-02 21:14:32 -04:00
Sorin Ionescu
627d653360
Alias py to python
2012-08-27 18:33:09 -04:00
Sorin Ionescu
060d9064f8
[ Fix #202 ] Load modules all or nothing
2012-08-04 14:32:59 -04:00
Sorin Ionescu
b2b90c22f8
Improve diction in documentation
2012-06-02 17:17:12 -04:00
Sorin Ionescu
075f516763
Clean up READMEs
2012-05-21 20:34:07 -04:00
Sorin Ionescu
e541283126
[ Fix #112 ] Add documentation for python
2012-05-05 16:27:53 -04:00
Sebastian Wiesner
c9561e1b87
Source virtualenvwrapper in python module
2012-05-05 12:31:53 -04:00
Sorin Ionescu
a7340886b3
[ #23 ] Rename plugins to modules
2012-04-05 13:39:40 -04:00