mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +01:00
37214: 'prompt walters': Don't export PS1
This commit is contained in:
parent
06a24d3747
commit
694aee4c3d
2 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2015-11-27 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 37214: Functions/Prompts/prompt_walters_setup: 'prompt
|
||||
walters': Don't export PS1
|
||||
|
||||
* 37163: Completion/Unix/Command/_curl,
|
||||
Completion/Unix/Type/_urls: Remove curl completion
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ EOF
|
|||
prompt_walters_setup () {
|
||||
|
||||
if [[ "$TERM" != "dumb" ]]; then
|
||||
export PROMPT='%B%(?..[%?] )%b%n@%U%m%u> '
|
||||
export RPROMPT="%F{${1:-green}}%~%f"
|
||||
PROMPT='%B%(?..[%?] )%b%n@%U%m%u> '
|
||||
RPROMPT="%F{${1:-green}}%~%f"
|
||||
else
|
||||
export PROMPT="%(?..[%?] )%n@%m:%~> "
|
||||
PROMPT="%(?..[%?] )%n@%m:%~> "
|
||||
fi
|
||||
|
||||
prompt_opts=(cr percent)
|
||||
|
|
Loading…
Reference in a new issue