diff --git a/README.md b/README.md index 0754065..52e3ac2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Python venv in prompt +# Python prompt -A bash-only, small tool to show Python venvs info in bash's prompt. +A bash function to help displaying Python's venv info in the prompt. Here's what it looks like (I also use [git-prompt](https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh). @@ -28,7 +28,7 @@ done Don't forget the installation step!
-TL;DR: +TL;DR ```bash if ! [[ -f ~/.fonts/dejavu/DejaVuSansMonoNerdFontCompleteMono.ttf ]] diff --git a/python-prompt.sh b/python-prompt.sh index 32a3606..ad4613f 100644 --- a/python-prompt.sh +++ b/python-prompt.sh @@ -18,7 +18,7 @@ shortest() fi } -python_ps1() +python_prompt() { local relative venvpath pyversion _ diff --git a/venv.png b/venv.png new file mode 100644 index 0000000..eeda5df Binary files /dev/null and b/venv.png differ