Skip to content

Commit

Permalink
Fix Python Version detection
Browse files Browse the repository at this point in the history
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
  • Loading branch information
mlaventure committed Nov 3, 2019
1 parent 968bc03 commit bf7b9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bash_prompt
Expand Up @@ -64,7 +64,7 @@ if command -v powerline-daemon > /dev/null; then
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
# python 3 or python 2?
RUNNING_PYTHON_VERSION="$(python --version |& cut -d' ' -f2 | cut -d'.' -f1)"
RUNNING_PYTHON_VERSION="$(python --version |& cut -d' ' -f2 | cut -d'.' -f1-2)"
if [ $RUNNING_PYTHON_VERSION = "2" ]; then
. ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
else
Expand Down

0 comments on commit bf7b9a3

Please sign in to comment.