Last active
February 1, 2024 19:42
-
-
Save Justasic/0bdd7f33032d6f014886a78c66dae62f to your computer and use it in GitHub Desktop.
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
# Color shortcuts | |
RED=$fg[red] | |
YELLOW=$fg[yellow] | |
GREEN=$fg[green] | |
WHITE=$fg[white] | |
BLUE=$fg[blue] | |
RED_BOLD=$fg_bold[red] | |
YELLOW_BOLD=$fg_bold[yellow] | |
GREEN_BOLD=$fg_bold[green] | |
WHITE_BOLD=$fg_bold[white] | |
BLUE_BOLD=$fg_bold[blue] | |
RESET_COLOR=$reset_color | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%}" | |
local user_symbol='%(!.#.🍔)' | |
local current_dir="%B%{$fg[blue]%}%~%{$reset_color%}" | |
local vcs_branch='$(git_prompt_info)$(git_prompt_short_sha)$(git_prompt_status)$(hg_prompt_info)' | |
local rvm_ruby='$(ruby_prompt_info)' | |
local venv_prompt='$(virtualenv_prompt_info)' | |
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g" | |
PROMPT="%B╭─%B(${user_host}) [${current_dir}] ${rvm_ruby}${vcs_branch}${venv_prompt} | |
%B╰─%B${user_symbol}%b " | |
RPROMPT="%B${return_code}%b" | |
# Format for git_prompt_status() | |
ZSH_THEME_GIT_PROMPT_UNMERGED=" %{$WHITE%}[%{$RED%}unmerged%{$WHITE%}]" | |
ZSH_THEME_GIT_PROMPT_DELETED=" %{$WHITE%}[%{$RED%}deleted%{$WHITE%}]" | |
ZSH_THEME_GIT_PROMPT_RENAMED=" %{$WHITE%}[%{$YELLOW%}renamed%{$WHITE%}]" | |
ZSH_THEME_GIT_PROMPT_MODIFIED=" %{$WHITE%}[%{$YELLOW%}modified%{$WHITE%}]" | |
ZSH_THEME_GIT_PROMPT_ADDED=" %{$WHITE%}[%{$GREEN%}added%{$WHITE%}]" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED=" %{$WHITE%}[$terminfo[bold]untracked%{$reset_color%}%{$WHITE%}]" | |
# Format for git_prompt_long_sha() and git_prompt_short_sha() | |
ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$WHITE%}[%{$YELLOW%}" | |
ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$WHITE%}]" | |
# Format for git_prompt_info() | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$WHITE%}[%{$reset_color%}%{$YELLOW_BOLD%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$WHITE%}]%{$reset_color%}" | |
# Format for parse_git_dirty() | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$RED%}*" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
ZSH_THEME_HG_PROMPT_PREFIX="$ZSH_THEME_GIT_PROMPT_PREFIX" | |
ZSH_THEME_HG_PROMPT_SUFFIX="$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
ZSH_THEME_HG_PROMPT_DIRTY="$ZSH_THEME_GIT_PROMPT_DIRTY" | |
ZSH_THEME_HG_PROMPT_CLEAN="$ZSH_THEME_GIT_PROMPT_CLEAN" | |
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[red]%}‹" | |
ZSH_THEME_RUBY_PROMPT_SUFFIX="› %{$reset_color%}" | |
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[green]%}‹" | |
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="› %{$reset_color%}" | |
ZSH_THEME_VIRTUALENV_PREFIX="$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX" | |
ZSH_THEME_VIRTUALENV_SUFFIX="$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment