Skip to content

Instantly share code, notes, and snippets.

@akost
Created September 22, 2022 17:02
Show Gist options
  • Save akost/6bbfc965bb3c9504730e6901bd6a9aa3 to your computer and use it in GitHub Desktop.
Save akost/6bbfc965bb3c9504730e6901bd6a9aa3 to your computer and use it in GitHub Desktop.
Oh-my-zsh Theme
# akost zsh theme
function get_pwd() {
print -D $PWD
}
function precmd() {
print -rP '
$fg_bold[green]%m$fg[white]:$(get_pwd)$reset_color $(git_prompt_info)'
}
PROMPT='$fg_bold[white]➜ $reset_color'
ZSH_THEME_GIT_PROMPT_PREFIX="(git: "
ZSH_THEME_GIT_PROMPT_SUFFIX="$reset_color)"
ZSH_THEME_GIT_PROMPT_DIRTY="$fg_bold[red]+"
ZSH_THEME_GIT_PROMPT_CLEAN="$fg_bold[green]"
alias cls=clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment