1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

37214: 'prompt walters': Don't export PS1

This commit is contained in:
Daniel Shahaf 2015-11-25 01:45:45 +00:00
parent 06a24d3747
commit 694aee4c3d
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2015-11-27 Daniel Shahaf <d.s@daniel.shahaf.name> 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, * 37163: Completion/Unix/Command/_curl,
Completion/Unix/Type/_urls: Remove curl completion Completion/Unix/Type/_urls: Remove curl completion

View file

@ -14,10 +14,10 @@ EOF
prompt_walters_setup () { prompt_walters_setup () {
if [[ "$TERM" != "dumb" ]]; then if [[ "$TERM" != "dumb" ]]; then
export PROMPT='%B%(?..[%?] )%b%n@%U%m%u> ' PROMPT='%B%(?..[%?] )%b%n@%U%m%u> '
export RPROMPT="%F{${1:-green}}%~%f" RPROMPT="%F{${1:-green}}%~%f"
else else
export PROMPT="%(?..[%?] )%n@%m:%~> " PROMPT="%(?..[%?] )%n@%m:%~> "
fi fi
prompt_opts=(cr percent) prompt_opts=(cr percent)