Last active
February 11, 2018 18:15
-
-
Save zummenix/985263648783f61ac56761a78f4162b8 to your computer and use it in GitHub Desktop.
A snippet for zsh prompt.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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