marblegravy
marblegravy

Reputation: 212

Prompt in zsh starts with ↑255 after an error command?

I'm new to zsh and am using the ZSH_THEME="jnrowe", which works great for a little while.

It starts out and I get a prompt that looks like this:

Ξ ~ → 

but if I run a command like: ssh it becomes:

↑255 ~ → 

I suspect something is messing up the character that was creating the triple bar in the first one, but have no clue really as to what's going on. I could just pick a different theme, but I've noticed most of them with a fancy character in the prompt do the same thing.

Is this a special error code or something? Or is something just borking out?

Upvotes: 0

Views: 718

Answers (1)

TobiX
TobiX

Reputation: 944

I don't know the prompt theme "jnrowe" (it's not part of the default zsh distribution afaics), but I suspect this prompt includes the error code of the last command in its output.

Try to run "ls" or "true" and the number will disapper. Run "false" and it will be 1, run ssh without arguments and it will be 255. zsh preserves this value until you run the next command, so pressing ENTER many times will not clear it.

(This will be the same value that is stored in the shell variable "$?")

Upvotes: 2

Related Questions