Skip to content

Instantly share code, notes, and snippets.

@soohoowoohoo
Last active June 17, 2024 03:25
Show Gist options
  • Save soohoowoohoo/eca1927f1d200037fee6129ae8425726 to your computer and use it in GitHub Desktop.
Save soohoowoohoo/eca1927f1d200037fee6129ae8425726 to your computer and use it in GitHub Desktop.
My .zshrc Config
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
setopt inc_append_history
setopt HIST_IGNORE_DUPS
zstyle ':vcs_info:git:*' formats '(%b)'
bindkey -v # add command-line vi bindings
bindkey ^R history-incremental-search-backward
NEWLINE=$'\n'
# Below is how to get a newline in zsh
# echo "%{\n%}"
#
# Possibly also this
# %{$'\n'%}
CURRENT_DIRECTORY="%F{cyan}[%~]%f"
GIT_INFO="%F{green}\$vcs_info_msg_0_%f"
# PS1="${CURRENT_DIRECTORY} ${GIT_INFO}${NEWLINE}%m: %n%# "
# PS1="${CURRENT_DIRECTORY} ${GIT_INFO}${NEWLINE}%n%# %F{green}>%f "
PS1="${CURRENT_DIRECTORY} ${GIT_INFO}${NEWLINE}%F{green}>%f "
# KUBE_PS1_SUFFIX=")%{\n%}"
# PS1='$(kube_ps1)'$PS1
export CLICOLOR=true
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
# path completion for lvim
export PATH=/Users/soohoos/.local/bin:$PATH
# This loads homebrew zsh completion
# if (( ! ${fpath[(I)/usr/local/share/zsh/site-functions]} )); then
# FPATH=/usr/local/share/zsh/site-functions:$FPATH
# fi
# Add /usr/local/sbin to path for homebrew
# export PATH=/usr/local/sbin:${PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment