Skip to content

Instantly share code, notes, and snippets.

@zummenix
Last active February 11, 2018 18:15
Show Gist options
  • Save zummenix/985263648783f61ac56761a78f4162b8 to your computer and use it in GitHub Desktop.
Save zummenix/985263648783f61ac56761a78f4162b8 to your computer and use it in GitHub Desktop.
A snippet for zsh prompt.
local path_string="%~"
local git_string='$(git_prompt_info)'
local prompt_string="λ"
local return_status="%(?:%{$fg[green]%}$prompt_string:%{$fg[red]%}$prompt_string)"
PROMPT="${return_status} %{$reset_color%}"
RPROMPT="%{$fg[yellow]%}${git_string}%{$reset_color%} ${path_string}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment