aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2025-10-15 23:46:25 -0400
committerEli Schwartz <eschwartz93@gmail.com>2026-04-28 11:27:40 -0400
commit4f808400371cb70e76a4970e59b64a9ea7663caf (patch)
treeace367d749bc9c4e525dd090345a710d17efe33e
parentae0259e5c75c98920c184a7ce008055433ac513f (diff)
downloadmeson-master.tar.gz
meson-master.tar.bz2
meson-master.zip
mdevenv: fix double brackets in zsh promptHEADmaster
prompt_command already has "[]" pre-added, so zsh ended up with e.g. ``` [[trivial test]] $ ``` whereas bash used: ``` [trivial test] $ ```
-rw-r--r--mesonbuild/mdevenv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py
index 766593065..30fca9196 100644
--- a/mesonbuild/mdevenv.py
+++ b/mesonbuild/mdevenv.py
@@ -250,7 +250,7 @@ def run(options: argparse.Namespace) -> int:
with open(os.path.join(tmpdir.name, '.zshrc'), 'w', encoding='utf-8') as zshrc:
zshrc.write('[ -e ~/.zshrc ] && . ~/.zshrc\n')
if prompt_prefix:
- zshrc.write(f'export PROMPT="[{prompt_prefix}] $PROMPT"\n')
+ zshrc.write(f'export PROMPT="{prompt_prefix} $PROMPT"\n')
devenv['ZDOTDIR'] = tmpdir.name
if 'DYLD_LIBRARY_PATH' in devenv and macos_sip_enabled():
mlog.warning('macOS System Integrity Protection is enabled: DYLD_LIBRARY_PATH cannot be set in the subshell')