Last active
March 17, 2023 16:45
-
-
Save marc-x-andre/aa370a9e00f6aacfa13779227c29c207 to your computer and use it in GitHub Desktop.
zsh-theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# My custom ZSH for "Git for Windows" | |
# ⌚ 12:43 - ⚡ v16.16.0 - 📂 ~/repo/dotfiles | |
# ➜ | |
# Doc used: https://blog.carbonfive.com/writing-zsh-themes-a-quickref/ | |
## | |
precmd() { | |
psvar[1]="v?.?.?" | |
if which node &> /dev/null; then | |
psvar[1]=$(node -v | perl -ple 'chop') | |
fi | |
} | |
PROMPT='%F{008}⌚ %T%{$reset_color%} - %F{034}⚡ %1v%{$reset_color%} - 📂 %F{014}%3~%{$reset_color%} | |
%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$reset_color%}%F{255}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment