Skip to content

Instantly share code, notes, and snippets.

@pugson
Created May 27, 2016 11:23
Show Gist options
  • Save pugson/bc8fc405d01675b8b7a17552d1120e96 to your computer and use it in GitHub Desktop.
Save pugson/bc8fc405d01675b8b7a17552d1120e96 to your computer and use it in GitHub Desktop.
Adds arrow on new line in zsh prompt
PROMPT="$PROMPT \
%{$terminfo[bold]$fg[red]%}→ %{$reset_color%}"
@kamal-github
Copy link

I used \n This worked for me. Thanks!

PROMPT="$PROMPT"$'\n'"%{$terminfo[bold]$fg[red]%}→ %{$reset_color%}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment