Skip to content

Instantly share code, notes, and snippets.

@kynadev
Created September 2, 2023 19:00
Show Gist options
  • Select an option

  • Save kynadev/acbe61bb9de1811c05e72bb5a6111c07 to your computer and use it in GitHub Desktop.

Select an option

Save kynadev/acbe61bb9de1811c05e72bb5a6111c07 to your computer and use it in GitHub Desktop.
OH MY ZSH THEME
# Infinitzie Theme! (wip)
# License: MIT
# Author: Kyna Develle
# Dependencies:
# plugin: zsh-autosuggestions
# package: git, cmatrix
# todo figure out ESC char equivelent that works the same
normal_type=""
bold_type=""
slanted_type=""
# FG[015] is bright white, FG[051] is a bright blue
PS1="${FG[015]} %~%{$reset_color%} \$(git_prompt_info)%{$bold_type%}${FG[051]}${FG[015]} 〉%{$normal_type%}%{$reset_color%}"
PS2="${FG[015]} | ${FG[051]}➜%{$reset_color%} "
RPS1="%(?..%{$bold_type%}${FG[220]}➜ %? X%{$reset_color%}%{$normal_type%})"
# FG[220] is orange, FG[226] is yellow
ZSH_THEME_GIT_PROMPT_PREFIX="${FG[220]}〈%{$slanted_type%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$normal_type%}${FG[220]}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$bold_type%}${FG[226]}⚡%{$normal_type%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
# todo add dependency check, (opt)
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#00d7ff"
if [ -f /usr/bin/cmatrix ]
then
alias cmatrix="cmatrix -C blue"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment