Skip to content

Instantly share code, notes, and snippets.

@xiii
Created January 21, 2018 16:04
Show Gist options
  • Save xiii/e6c116d709ba005c8a346fb8d93678f3 to your computer and use it in GitHub Desktop.
Save xiii/e6c116d709ba005c8a346fb8d93678f3 to your computer and use it in GitHub Desktop.
efstxago zsh theme
# ZSH
# Uncomment the PROMPT you fancy. This is mainly a prompt for users switching between python/ruby venvs/ruby versions
# download the file here $HOME/.oh-my-zsh/themes
# [p3.6/r2.3.1] infra/pewpew-infra (master*) $
#PROMPT='[p$(basename $VIRTUAL_ENV)/r$RUBY_VERSION] %{$fg[green]%}%2~%{$reset_color%}$(git_prompt_info) %(!.#.$) '
# p3.6|r2.3.1|/h/e/i/i/pewpew-infra|master*$
#PROMPT='p$(basename $VIRTUAL_ENV)|r$RUBY_VERSION|%{$fg[green]%}$(echo "${PWD%/*}" | sed -e "s;\(/.\)[^/]*;\1;g")/${PWD##*/}%{$reset_color%}%{$fg[green]%}%{$reset_color%}$(git_prompt_info)%(!.#.$)'
# /h/e/i/i/marple-infra|master*$
# /h/efstxago$
PROMPT='%{$fg[green]%}$(echo "${PWD%/*}" | sed -e "s;\(/.\)[^/]*;\1;g")/${PWD##*/}%{$reset_color%}%{$fg[green]%}%{$reset_color%}$(git_prompt_info)%(!.#.$)'
ZSH_THEME_GIT_PROMPT_PREFIX="|%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment