Last active
December 13, 2019 18:46
-
-
Save fwfurtado/ea868c7bd47b102a02c19c82a8dd3b19 to your computer and use it in GitHub Desktop.
My custom theme zsh
This file contains hidden or 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
function get_pwd(){ | |
echo "${PWD/$HOME/~}" | |
} | |
local ret_status="%(?:%{$fg_bold[green]%}λ :%{$fg_bold[red]%}λ )" | |
PROMPT='%{$fg[cyan]%}$(get_pwd)%{$reset_color%} %{$fg[red]%}❯%{$fg[yellow]%}❯%{$fg[green]%}❯$(git_prompt_info) | |
${ret_status}%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} (%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment