diff --git a/.bashrc b/.bashrc
index 4aa6b860a1c455708f098c2ebc6fc6e77d8abba9..7e829f587beef3b38b6f83b9eec4798bfc99c439 100644
--- a/.bashrc
+++ b/.bashrc
@@ -49,7 +49,7 @@ export PATH="$HOME/Documents/bin:$PATH"
 export PATH="$HOME/Repositories/Shore/ssh-ca:$PATH"
 export PATH="$HOME/Repositories/Shore/ssl-ca:$PATH"
 export PGSSLROOTCERT=/etc/ssl/certs/ca-certificates.crt
-PIPENV_DEFAULT_PYTHON_VERSION="$(python3 --version | grep -i '3\.[0-9]*')" > /dev/null 2>&1
+PIPENV_DEFAULT_PYTHON_VERSION="$(python3 --version | grep -o '3\.[0-9]*')" > /dev/null 2>&1
 export PIPENV_DEFAULT_PYTHON_VERSION
 export PIPENV_MAX_DEPTH=5
 export PS1='\u@\h:\w\$ '