• Stars
    star
    200
  • Rank 195,325 (Top 4 %)
  • Language
    Shell
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐟🐍 a fish plugin that automatically activates the pipenv subshell

hooks into a change in PWD to automatically launch a Pipenv shell for your Pipenv project

note: this project was previously maintained by @kennethreitz

Installation

With Fisher

fisher install sentriz/fish-pipenv

With Fundle

Add:

fundle plugin "sentriz/fish-pipenv"

to your config.fish (create one if it doesn't exist), reload your shell and run:

fundle install

With Oh My Fish

omf install https://github.com/sentriz/fish-pipenv

Configuration options

Suitable for your ~/.config/fish/config.fish

# set if your term supports `pipenv shell --fancy`
set pipenv_fish_fancy yes

Potential Issues

Mac OS

After installing pipenv, running the $ pipenv command may yield the following error:
Install http://docs.pipenv.org/en/latest/ to use this package.

Reason for the error

The problem is that, the pipenv package rightly could not find the pipenv command. The situation with fish shell is that it executes scripts in the /Users/user/.config/fish/config.d folder before executing config.fish and the pipenv package creates a link in the config.d folder hence it is executed before config.fish.

Now depending on how you installed pipenv or how soon your $PATH is loaded you could be faced with the above error.

Solutions

  1. You could install pipenv with the command $ pip3 install pipenv. Pipenv will then be installed in /usr/local/bin. On some systems the folder /usr/local/bin is added to $PATH by the system which means that it will be available before fish goes fishing for scripts in /Users/user/.config/fish/config.d

  2. Or you could create a file say 000-env.fish (or whatever you want to call it), and place it in /Users/user/.config/fish/config.d. In this file set the path to the folder where pipenv was installed. E.g if pipenv was installed via pipsi, then the command will be something like set -x PATH /Users/user/.local/bin $PATH

    If pipenv was installed via $ pip install pipenv, then note that pip (python2) now puts its executables in /usr/local/opt/python/libexec/bin.

    The 000 preface is to ensure that, that script will be executed first before the others in config.d. You don't have to prefix the file with 000 it is abitrary. Just give it a name that places it at the top of the pile.

  3. Or assuming you also have fish-pyenv you can add a universal variable to your fish_user_paths following mhugbin:

    set -U fish_user_paths ~/.pyenv/shims $fish_user_paths

See #1

License

MIT

More Repositories

1

gonic

music streaming server / subsonic server API implementation
Go
1,062
star
2

betanin

beets based mitm of your torrent client and music player
Python
322
star
3

cliphist

wayland clipboard manager
Go
161
star
4

wlr-sunclock

wayland desktop widget to show to the sun's shadows on earth
C
44
star
5

vim-print-debug

assisted printf debugging for vim
Vim Script
38
star
6

dotfiles

my dotfiles
Shell
18
star
7

standardnotes-extensions

auto updating extensions for your standardnotes server
Go
17
star
8

socr

screenshot OCR server
Go
11
star
9

socr-cli

searchable auto generated screenshot ocr database
Python
9
star
10

compose-status

simple home server status page, compose and traefik aware
Go
8
star
11

wl-gammactld

a daemon for wl-gammactl
Shell
7
star
12

bandcamp_downloader

a python 3+ script for downloading, renaming, and tagging albums from Bandcamp
Python
6
star
13

vi-pipe

edit text in the middle of a shell pipeline, and store a diff to replay changes after further invocations
Go
5
star
14

hexchat_python_addons

a python 3+ collection of HexChat addons
Python
5
star
15

reboodt

a python 3+ IRC bot
Python
4
star
16

cliphist-sh

wayland clipboard manager
Shell
4
star
17

rsl

reserialise: lossy but versatile conversion between data serialisation formats
Go
3
star
18

honk-docker

docker image for honk
Dockerfile
3
star
19

nvim-lsp-compose

compose language servers, and formatters / linters via efm in a language * feature matrix
Lua
2
star
20

beside

unix pipeline stage with before and after preview
Go
1
star
21

go-filelock

Go
1
star
22

log-proxy

a reverse proxy to a single address, logging request and response bodies
Go
1
star
23

xyz

personal jekyll website
Sass
1
star