lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 35fc864 2/3: Set $PS1 rather than $prompt in


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 35fc864 2/3: Set $PS1 rather than $prompt in .zshrc
Date: Sat, 15 Feb 2020 08:56:19 -0500 (EST)

branch: master
commit 35fc8645aab29d9e4e85feb286cf6a0ee383faab
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Set $PS1 rather than $prompt in .zshrc
    
    The zsh manual says that $prompt is the same as $PROMPT, which is the
    same as $PS1; however, if only $prompt is set in the RC file, then $PS1
    retains a different value set earlier.
---
 gwc/.zshrc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gwc/.zshrc b/gwc/.zshrc
index 48bd23a..cd982a8 100644
--- a/gwc/.zshrc
+++ b/gwc/.zshrc
@@ -82,9 +82,9 @@ bindkey '^G' send-break                          # emacs 
Ctrl-G
 bindkey '\eq' push-line                          # emacs Esc-Q
 
 # Set this preemptively, even though it's reset almost immediately.
-# Otherwise, a redhat server initially shows an unwanted bash prompt
-# when zsh is started.
-prompt='%d[%?]%(!.#.$)'
+# Otherwise, a redhat server initially shows an unwanted default
+# prompt when zsh is started.
+PS1='%d[%?]%(!.#.$)'
 
 function zle-line-init zle-keymap-select {
     local local_prompt='%d[%?]%(!.#.$)'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]