Skip to content

Instantly share code, notes, and snippets.

@asifZaman0362
Created July 23, 2025 07:31
Show Gist options
  • Select an option

  • Save asifZaman0362/81e25337ffc1ff5b010333b8f6c79979 to your computer and use it in GitHub Desktop.

Select an option

Save asifZaman0362/81e25337ffc1ff5b010333b8f6c79979 to your computer and use it in GitHub Desktop.
zshrc
HISTFILE=~/.histfile
HISTSIZE=100
SAVEHIST=true
setopt autocd
bindkey -e
bindkey -v '^?' backward-delete-char
zstyle :compinstall filename '$HOME/.zshrc'
autoload -Uz compinit
compinit
if [ -z "$SSH_AUTH_SOCK" ]; then
eval `ssh-agent -s`
ssh-add
fi
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git:*' formats '%b'
setopt PROMPT_SUBST
PROMPT='%F{green}%n@%m%f %F{blue}%~%f %F{red}@{vcs_info_msg_0_}%f$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment