axis7818.zsh-theme
I built this ZSH Theme from scratch. It took a while to strike a balance between useful information and spacious layout without taking up too much space in the terminal. This theme shows the current directory and git repo information. The prompt line is separate from that information to make it easier to use a narrower window without dealing with word wrap. It also shows failed exit codes and injects an extra newline between commands to visually
axis7818.zsh-theme
; [ && user_color='red'
# Set Prompt
PROMPT='${return_status}
$FG[default]${pwd}${post_wd} %{$fg_bold[yellow]%}$(virtualenv_info)$(git_info)
${prompt_line}'
PROMPT2="%{ [red]%}\ %{ %}"
RPROMPT=''
# Git Fields
ZSH_THEME_GIT_PROMPT_PREFIX="%{ [magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{ %}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{ [yellow]%}∼%{ %}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{ [green]%}✓%{ %}"
ZSH_THEME_GIT_PROMPT_ADDED="%{ [green]%}+%{ %}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{ [blue]%}✱%{ %}"
ZSH_THEME_GIT_PROMPT_DELETED="%{ [red]%}✗%{ %}"
ZSH_THEME_GIT_PROMPT_RENAMED="%{ [magenta]%}➦%{ %}"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{ [yellow]%}✂%{ %}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{ [cyan]%}?%{ %}"
Usage
I recommend using ohmyzsh to set up zsh on your machine.
After ohmyzsh is set up, create a file at ~/.oh-my-zsh/custom/themes/axis7818.zsh-theme
, and past the axis7818.zsh-theme contents into it.
Finally, set your theme by updating your .zshrc
file:
ZSH_THEME="axis7818"