Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicfit/virtualenvwrapper_xonsh
virtualenvwrapper for the xonsh
https://github.com/nicfit/virtualenvwrapper_xonsh
xonsh
Last synced: about 1 month ago
JSON representation
virtualenvwrapper for the xonsh
- Host: GitHub
- URL: https://github.com/nicfit/virtualenvwrapper_xonsh
- Owner: nicfit
- Created: 2015-11-22T09:32:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-27T01:30:55.000Z (about 9 years ago)
- Last Synced: 2024-11-08T03:39:10.478Z (3 months ago)
- Topics: xonsh
- Language: Python
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=======================
virtualenvwrapper_xonsh
=======================Quickstart
==========
::
$ mkdir -p ~/.virtualenvs$ git clone https://github.com/nicfit/virtualenvwrapper_xonsh.git
$ cd ./virtualenvwrapper_xonsh
$ import sys; sys.path.append('.')
$ import virtualenvwrapper_xonsh$ mkvirtualenv sampleenv
(sampleenv)$ which python pip
~/.virtualenvs/sampleenv/bin/python
~/.virtualenvs/sampleenv/bin/pip(sampleenv)$ deactivate
$ which python pip
/usr/bin/python
/usr/bin/pipIntroduction
============
Shout out to Doug Hellmann and ``virtualenvwrapper``.~/.xonshrc
----------
::
import os, sys
sys.path.append(os.path.expanduser("~/.xonsh.d"))VIRTUALENVWRAPPER_XONSH_DIR = "~/.virtualenvs"
import virtualenvwrapper_xonshCustomization
=============- VIRTUALENVWRAPPER_XONSH_DIR
Xonsh
-----
::
$ git clone https://github.com/scopatz/xonsh.git
$ cd xonsh
$ mkvirtualenv -p /usr/bin/python3.5 -r requirements.txt -i prompt-toolkit xonsh
(xonsh)$Prompt
======To show the active virtualenv in your prompt use the ``updatePrompt`` function.
::
$ import virtualenvwrapper_xonsh
virtualenvwrapper_xonsh.updatePrompt()This simply prepends the virtualenv to the beginning of your prompt, so you
may also choose to use the ``{virtualenv}`` variable in anywhere in you
``$PROMPT`` string.