fix ramses, mairan, and agnoster shell quoting with virtual env
This commit is contained in:
@@ -210,7 +210,8 @@ prompt_virtualenv() {
|
|||||||
if [[ -n $VIRTUAL_ENV ]]; then
|
if [[ -n $VIRTUAL_ENV ]]; then
|
||||||
color=cyan
|
color=cyan
|
||||||
prompt_segment $color $PRIMARY_FG
|
prompt_segment $color $PRIMARY_FG
|
||||||
prompt_segment $color white "$(basename $VIRTUAL_ENV)"
|
ve=`basename "$VIRTUAL_ENV"`
|
||||||
|
prompt_segment $color white "$ve"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ prompt() {
|
|||||||
|
|
||||||
if [ -n "$VIRTUAL_ENV" ]
|
if [ -n "$VIRTUAL_ENV" ]
|
||||||
then
|
then
|
||||||
ve=`basename $VIRTUAL_ENV`;
|
ve=`basename "$VIRTUAL_ENV"`;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# nice prompt
|
# nice prompt
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ prompt() {
|
|||||||
|
|
||||||
if [ -n "$VIRTUAL_ENV" ]
|
if [ -n "$VIRTUAL_ENV" ]
|
||||||
then
|
then
|
||||||
ve=`basename $VIRTUAL_ENV`;
|
ve=`basename "$VIRTUAL_ENV"`;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# nice prompt
|
# nice prompt
|
||||||
|
|||||||
Reference in New Issue
Block a user