https://github.com/smileychris/virtualenv.fish
Virtualenv helper scripts for fish shell
https://github.com/smileychris/virtualenv.fish
Last synced: 9 months ago
JSON representation
Virtualenv helper scripts for fish shell
- Host: GitHub
- URL: https://github.com/smileychris/virtualenv.fish
- Owner: SmileyChris
- Created: 2014-12-17T06:31:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-18T22:04:10.000Z (over 11 years ago)
- Last Synced: 2025-03-17T11:51:46.983Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 160 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
===============
virtualenv.fish
===============
Some fish shell functions providing useful shortcuts to deal with multiple
virtualenvs.
The shortcut functionality is derived from the commonly used scripts of
`virtualenvwrapper `_.
Installation
============
Install this project anywhere, then simply run the following (you'll need
``fish`` installed first, obviously)::
./install.fish
To uninstall the scripts, you can run ``./uninstall.fish``.
Usage
=====
``cd``
------
Changing into the base directory of a virtualenv, or a project directory of the
same name as a virtualenv will automatically enable the virtualenv.
``cdproject``
-------------
A shortcut to change the working directory to the project directory for the
current virtualenv.
``cdsitepackages``
------------------
Change the working directory to the virtualenv's site packages directory (or
the system one if no virtualenv is enabled).
``cdvirtualenv``
----------------
A shortcut to change the working directory to the virtualenv root.
``setvirtualenvproject []``
---------------------------------
Set the given directory (or current working directory if omitted) as the
project directory for the current virtualenv.
``workon ``
-----------------
Allows you to switch to any project in your ``~/.virtualenvs/`` (or if defined,
the directory referenced in your ``$WORKON_HOME`` environment variable).
If defined, the working directory will be changed to the virtualenv's project
directory.
Virtualenv names are autocompleted.