Git PS1 error in pipenv shell
See original GitHub issueHi,
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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 initiallyBecause Pipenv only reads bashrc and that’s it. Use the above workarounds.