question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git PS1 error in pipenv shell

See original GitHub issue

Hi,

My Problem

When I run the pipenv shell command, the shell works whell but I have this error: bash: __git_ps1: command not found.

Context

I work on MacOS and I use git-prompt to see informations on the current repository in my prompt, like this: repo_name (master *). ls -l (where repo_name (master *). is my prompt and ls -l is a command for the example).

This git-prompt is activated in my ~/.bash_profile like this:

PS1='\[\e[1;34m\]\W\[\e[0m\]$(__git_ps1)\[\e[1;34m\].\[\e[0m\] '

[...]

# Bash Completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
    source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
    source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
fi
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

Does somebody have an idea to fix that ? Tanks a lot ! 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

26reactions
laristercommented, Jan 5, 2018

@QuentinBrosse did you ever get a resolution for this? Just in case, for me it was simply a case of adding a symlink or my ~/.bash_profile called ~/.bashrc; looks like pipenv/pew only run ~/.bashrc at least initially

4reactions
uranusjrcommented, Apr 5, 2018

Because Pipenv only reads bashrc and that’s it. Use the above workarounds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pipenv shell working but an error is displayed
This shows the git branch on the bash prompt. So I believe vscode uses this settings. The folder I am working on is...
Read more >
pipenv Documentation
Pipenv allows you to open any Python module that is installed (including ones in your codebase), with the $ pipenv open command: $...
Read more >
Configure a Pipenv environment | PyCharm Documentation
If you don't have the base binary directory in PATH , PyCharm shows an error message: Pipenv executable is not found. Discover the...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
Here are some common questions people have using Pipenv. Please take a look below and see if they resolve your problem. Note. Make...
Read more >
Pipenv: promises a lot, delivers very little
cd ~/git/foobar $ pipenv shell (foobar-Mwd1l2m9)$ cd ~/Downloads ... starts when pipenv starts locking dependencies and ends when the prompt ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found