Skip to content

Instantly share code, notes, and snippets.

@Sam-Belliveau
Created January 6, 2020 23:57
Show Gist options
  • Save Sam-Belliveau/5acba33de43647fe5398d4fe2a293d04 to your computer and use it in GitHub Desktop.
Save Sam-Belliveau/5acba33de43647fe5398d4fe2a293d04 to your computer and use it in GitHub Desktop.
# ╭───────────────╮
# │ ╭───╮ ╭───╮ │ Hello! My Name is Tom! Im just here to say hello!
# │ │ * │ │ * │ │ If you would like to borrow any of my cool lines,
# │ ╰───╯ ╰───╯ │ Either copy from my face or pick out a few from
# │ ) │ below! Anyway, I hope whatever your making is 10x
# │ ╰─────────╯ │ cooler with these cool lines your using.
# ╰───────────────╯ ╭───╮
# Here is ╭───┴───┴───╮
# my Handy │ │ ─ ╰╯ ╭╮ │
# tool box! ╰───────────╯
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [[ $UID -eq 0 ]]; then
local user='%{$fg[red]%}%n@%m %{$reset_color%}'
else
local user='%{$fg[green]%}%n@%m %{$reset_color%}'
fi
local current_dir='%{$terminfo[italics]$fg[cyan]%}%~ %{$reset_color%}'
local git_branch='$(git_prompt_info)'
local git_length='${git_branch}'
PROMPT="
─────╮ ${user} ${git_branch}
╭───╯ ${current_dir}
─╯ "
RPROMPT="${return_code}"
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