Created
August 18, 2021 11:35
-
-
Save twfahey1/b061007f24789a82976b5dbd3a7b92e1 to your computer and use it in GitHub Desktop.
Terminal setup
This file contains hidden or 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
ZSH_THEME="dracula" | |
# DRACULA_ARROW_ICON="-> " | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' | |
} | |
COLOR_DEF='%f' | |
COLOR_USR='%F{243}' | |
COLOR_DIR='%F{180}' | |
COLOR_GIT='%F{39}' | |
NEWLINE=$'\n' | |
setopt PROMPT_SUBST | |
export PROMPT='${COLOR_USR}%n@%M ${COLOR_DIR}%d ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF}${NEWLINE}%% ' |
This file contains hidden or 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
git clone https://github.com/dracula/zsh.git dracula-zsh-theme | |
ln -s dracula-zsh-theme/dracula.zsh-theme $ZSH/themes/dracula.zsh-theme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment