Skip to content

Instantly share code, notes, and snippets.

@ColdTeapot273K
Last active January 18, 2022 19:07
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 ColdTeapot273K/d7c5b40f2bcaf66496515aaaa28908d0 to your computer and use it in GitHub Desktop.
Save ColdTeapot273K/d7c5b40f2bcaf66496515aaaa28908d0 to your computer and use it in GitHub Desktop.
Custom oh-my-zsh theme 2 (`intheloop` theme but with better colors). Julia colored
# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
local host_color="green"
# if [ -n "$SSH_CLIENT" ]; then
# local host_color="red"
# fi
# add extra styling for activated venvs
# export VIRTUAL_ENV_DISABLE_PROMPT=1
# venv() {
# if [[ -v VIRTUAL_ENV ]]; then
# echo "(@${VIRTUAL_ENV##*/})"
# fi
# }
# eval julia_purple='$FG[013]'
eval julia_purple='$FG[013]'
# eval julia_purple='%F{#ff0000}red%f%F{green}%B'
# eval my_purple='$FG[098]'
# eval my_yellow='$FG[228]'
eval julia_blue='$FG[012]'
eval julia_green='$fg_bold[${host_color}]'
eval julia_red='%F{#CB3C33}'
# eval grey=julia_red
# %{$julia_purple%}$(venv)%{$reset_color%} if you use conda it won't work
# %{$fg_bold[${host_color}]%}%*%{$reset_color%} 🍵🫖
PROMPT='%{$julia_purple%}%*%{$reset_color%}
%{$fg_bold[${host_color}]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[${host_color}]%}]%{$reset_color%} %{$julia_blue%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status)
%{$julia_blue%}>%{$reset_color%} '
RPROMPT='${return_status}%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$julia_purple%}(%{$julia_purple%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$julia_purple%}) %{$julia_purple%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$julia_purple%})"
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$julia_purple%}↓%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$julia_purple%}↑%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$julia_purple%}↕%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment