Skip to content

fishingline/python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python

Better fish configuration for python

What you get?

  • Better python completions
  • Better ipython completions
  • Better jupyter completions
  • Cool new functions
  • venv handling

venv

Python 3 added the venv module, which replaces all the other ways that the community created to make Python virtual environments.

But, if you have ever used virtualenv and virtualenvwrapper, there are some convenience commands that make working with Python virtual environments easier.

This plugin gives you a workon command for activating a venv, as well as the mkvenv command to make Python virtual environments.

Virtual environments are stored in $VENV_HOME, which defaults to ~/.local/share/venvs

Sample usage

# make a venv at ~/.local/share/venvs/playground
mkvenv playground

# mkvenv is just a wrapper around "python3 -m venv", so pass other arguments
# to it at will.
mkvenv --without-pip --copies --prompt 'wanna play?' another_playground

# activate a virtual environment
workon playground

# do your work here...
# ???

# when done, deactivate
deactivate

Install

fisher installation:

fisher add fishingline/python

About

Better fish configuration for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages