Skip to content

Instantly share code, notes, and snippets.

@ivarprudnikov
Last active December 6, 2023 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivarprudnikov/8149e313f5d0b87fc6c8067475949f6e to your computer and use it in GitHub Desktop.
Save ivarprudnikov/8149e313f5d0b87fc6c8067475949f6e to your computer and use it in GitHub Desktop.
Initial zshrc config
# zsh config
###############
# Load version control information
autoload -Uz vcs_info
precmd() { vcs_info }
# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats '(%b) '
autoload -U colors && colors
setopt PROMPT_SUBST
# %1~ shows last dir, i.e. current working one
# %(!.#.$) shows symbol depending if root or not
# Set up the prompt (with git branch name):
# 🦄 currentdirectory $ (main)
PROMPT='%F{027}🦄 %F{011}%1~%F{reset} %(!.#.$) %F{025}${vcs_info_msg_0_}%F{reset}'
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# list dirs and show hidden, sort by latest, show size
alias ls='ls -lAGFht'
# Clear history
rm ~/.zsh_history
touch ~/.zsh_history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment