[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Shell
From: |
David Gray |
Subject: |
Shell |
Date: |
Mon, 17 Oct 2022 13:06:01 +0300 |
When I run shell from Edwin with macO(zsh) I cannot set the prompt correctly.
I have the following code that gets round some issues with bracketed paste.
if [[ $TERM == "emacs" || $TERM == "dumb" ]]
then
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
if whence -w precmd >/dev/null; then
unfunction precmd
fi
if whence -w preexec >/dev/null; then
unfunction preexec
fi
PS1='$ '
return
fi
zle_highlight=('paste:none’)
With a plain dumb terminal this is OK but in Edwin I always get:
^[];file://<the name of my local machine><then my home directory>^G
And then the PS1 prompt.
[Prev in Thread] |
Current Thread |
[Next in Thread] |