Last active
January 27, 2025 14:56
-
-
Save yankcrime/fa4f8812c73d5ece751d3fd732cd5eb4 to your computer and use it in GitHub Desktop.
Minimal .zshrc
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
autoload -U colors | |
autoload -U compinit | |
autoload -U zstyle+ | |
autoload -U vcs_info | |
HISTSIZE=10000000 | |
SAVEHIST=10000000 | |
TMOUT=0 | |
HISTFILE=~/.history | |
setopt APPEND_HISTORY | |
setopt SHARE_HISTORY | |
setopt EXTENDED_HISTORY | |
setopt INC_APPEND_HISTORY | |
setopt HIST_EXPIRE_DUPS_FIRST | |
setopt HIST_FIND_NO_DUPS | |
setopt HIST_IGNORE_DUPS | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt prompt_subst | |
colors | |
compinit | |
#PS1='%n@%m:%~%(!.#.>) ' | |
case $TERM in | |
xterm*) | |
;; | |
esac | |
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' | |
zstyle ':completion:*' use-cache on | |
zstyle ':completion:*' cache-path ~/.zsh/cache | |
zstyle ':vcs_info:*' enable git svn | |
zstyle ':vcs_info:git*' formats " (%b)" | |
precmd() { | |
vcs_info | |
print -Pn "\e]0;%m %~\a" | |
} | |
PROMPT='%{$fg_bold[blue]%}%n@%m%{$fg_bold[grey]%}%{$reset_color%} %2c${vcs_info_msg_0_}%{$reset_color%} %% ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment