From 802db7523342a3e73e14406fa313e5d8b50e45d8 Mon Sep 17 00:00:00 2001 From: Noah McIvor Date: Sat, 9 Mar 2024 17:46:51 -0500 Subject: [PATCH] themes/zork: Quote variable expansion $VIRTUAL_ENV Without double-quotes, paths with spaces are not resolved correctly and venv name is not displayed correctly. --- themes/zork/zork.theme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/zork/zork.theme.sh b/themes/zork/zork.theme.sh index e472eee..12285ad 100644 --- a/themes/zork/zork.theme.sh +++ b/themes/zork/zork.theme.sh @@ -77,7 +77,7 @@ function _omb_theme_PROMPT_COMMAND { if [ -n "$VIRTUAL_ENV" ] then - ve=`basename $VIRTUAL_ENV`; + ve=`basename "$VIRTUAL_ENV"`; fi # nice prompt