ref
This commit is contained in:
parent
1bd3ead7da
commit
5be34ef1b0
3
.bashrc
3
.bashrc
@ -15,12 +15,11 @@ virtualenv_info() {
|
||||
# Get Virtual Env
|
||||
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||||
# Strip out the path and just leave the env name
|
||||
venv="$(basename $VIRTUAL_ENV)"
|
||||
echo "($(basename $VIRTUAL_ENV))"
|
||||
else
|
||||
# In case you don't have one activated
|
||||
venv=''
|
||||
fi
|
||||
[[ -n "$venv" ]] && echo "($venv)"
|
||||
}
|
||||
|
||||
close_color='\[\e[m\]'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user