Skip to content

Instantly share code, notes, and snippets.

@charlesfranciscodev
Last active April 1, 2024 01:39
Show Gist options
  • Save charlesfranciscodev/6f5d32c7653e6c2e4ea38e339a350dfb to your computer and use it in GitHub Desktop.
Save charlesfranciscodev/6f5d32c7653e6c2e4ea38e339a350dfb to your computer and use it in GitHub Desktop.
.zshrc
export EDITOR=nano
export VISUAL="$EDITOR"
# git
autoload -Uz compinit && compinit
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
COLOR_DEF=$'%f'
COLOR_DIR=$'%F{197}'
COLOR_GIT=$'%F{39}'
setopt PROMPT_SUBST
export PROMPT='${COLOR_DIR}%1d ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF} $ '
# poetry
fpath+=~/.zfunc
autoload -Uz compinit && compinit
export CDPATH=.\
:${HOME}\
:${HOME}/workspace\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment