Skip to content

Instantly share code, notes, and snippets.

@TylerTemp
Last active July 17, 2021 16:03
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 TylerTemp/054b7b55aec723b104076a1c6d816f49 to your computer and use it in GitHub Desktop.
Save TylerTemp/054b7b55aec723b104076a1c6d816f49 to your computer and use it in GitHub Desktop.
# modified from https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/maran.zsh-theme
# add root color changing
# usage: curl https://gist.githubusercontent.com/TylerTemp/054b7b55aec723b104076a1c6d816f49/raw/5dcfba1e204a3d6766f6cdeb08e7fe4bd4847ba9/smaran.zsh-theme > ~/.oh-my-zsh/themes/smaran.zsh-theme
# then change your theme to smaran
########################################
# Theme with full path names and hostname
# Handy if you work on different servers all the time;
PROMPT='%{%(#~$fg[red]~$fg[cyan])%}%n%{$reset_color%}@%{$fg[yellow]%}%M:%{%(#~$fg[red]~$fg[green])%}%/%{$reset_color%}$(git_prompt_info) %(!.#.$) '
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}git:("
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