Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@webhive
Created December 10, 2017 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webhive/761f1cefe36c386514e4737c1fcb6e1b to your computer and use it in GitHub Desktop.
Save webhive/761f1cefe36c386514e4737c1fcb6e1b to your computer and use it in GitHub Desktop.
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}\ue0a0 [%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}] %{$fg[red]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}]"
# Comment
# PROMPT='%{$fg[magenta]%}[%c] %{$reset_color%}'
# RPROMPT='%{$fg[magenta]%}$(git_prompt_info)%{$reset_color%} $(git_prompt_status)%{$reset_color%}'
# ZSH_THEME_GIT_PROMPT_PREFIX=""
# ZSH_THEME_GIT_PROMPT_SUFFIX=""
# ZSH_THEME_GIT_PROMPT_DIRTY=""
# ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}✈"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%}✭"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✗"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}➦"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%}✂"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%}✱"
function ruby_version {
ruby_version=$(~/.asdf/bin/asdf current ruby | awk -F' ' '{print $1}')
echo $ruby_version
}
function node_version {
node_version=$(~/.asdf/bin/asdf current nodejs | awk -F' ' '{print $1}')
echo $node_version
}
RPROMPT='%{$fg[red]%} $(ruby_version)%{$reset_color%} %{$fg[green]%} $(node_version)%{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment