Last active
July 9, 2025 16:51
-
-
Save ruph/964df57312ef577eb5da to your computer and use it in GitHub Desktop.
zsh settings
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
# History | |
HISTFILE=~/.zsh_history | |
HISTSIZE=10240 | |
SAVEHIST=10240 | |
setopt appendhistory extendedglob nomatch sharehistory hist_ignore_all_dups hist_find_no_dups | |
export HISTTIMEFORMAT="%F %T " | |
# Keybindings | |
bindkey -e | |
WORDCHARS=${WORDCHARS//\/} | |
# Autocomplete | |
zstyle :compinstall filename '~/.zshrc' | |
autoload -Uz compinit | |
zstyle ':completion:*' use-cache on | |
zstyle ':completion:*' cache-path ~/.zsh/cache | |
compinit | |
# Prompt colors | |
autoload -U colors && colors | |
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[red]%}%m %{$fg[yellow]%}%1~ %{$reset_color%}%# " | |
# Aliases & editor | |
alias vi='vim' | |
export EDITOR=vi | |
# Permissions | |
umask 002 | |
# Terminal type | |
export TERM=xterm | |
# Show Git branch | |
autoload -Uz vcs_info | |
precmd() { vcs_info } | |
zstyle ':vcs_info:git:*' formats '(%b)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment