From 7b64fa1b3f5020f833bc44081dcc64b04015284d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 May 2022 19:55:50 -0700 Subject: zsh: some cleanup --- home/zsh/prompt.zsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'home/zsh/prompt.zsh') diff --git a/home/zsh/prompt.zsh b/home/zsh/prompt.zsh index c1277e9..1c21d4b 100644 --- a/home/zsh/prompt.zsh +++ b/home/zsh/prompt.zsh @@ -1 +1,11 @@ -PROMPT="%K{cyan}%F{black}%m%k%f %~ %% " +setopt prompt_subst + +PROMPT='%K{cyan}%F{black}%m%k%f %~ %% ' + +# For tramp (emacs). +if [ "$TERM" = "dumb" ]; then + unset PROMPT + PS1='$ ' + unsetopt zle +fi + -- cgit 1.4.1