Last active
December 6, 2023 22:18
-
-
Save ivarprudnikov/8149e313f5d0b87fc6c8067475949f6e to your computer and use it in GitHub Desktop.
Initial zshrc config
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
# 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