pure icon indicating copy to clipboard operation
pure copied to clipboard

plugin generating 4 spurious carriage returns when run as non-login shell

Open gbpoole opened this issue 6 years ago • 0 comments

Hey there. I've been enjoying using your fork of this zsh prompt. I find though that when I run a non-login shell, that it generates 4 spurious carriage returns. I wouldn't notice or care, except that it trips-up my automated tests like so:

terminal-3% make -f .test/Makefile tests
.test/tests/test_bash_config.sh
all 2 bash_config_tests tests passed in 1.000s.
.test/tests/test_zsh_config.sh
test #2 "./.zshrc 2>&1" failed:
	expected nothing
	got "\n\n\n\n"
1 of 2 zsh_config_tests tests failed in 2.000s.
make: *** [test_zsh_config.sh] Error 1

I've been able to fix this by changing the last line of pure.plugin.zsh to read:

759 if [[ -o login ]]; then
760     prompt_pure_setup "$@"
761 fi

Any chance of getting that fixed?

gbpoole avatar Mar 11 '19 08:03 gbpoole