# zsh options setopt NO_CASE_GLOB setopt AUTO_CD # show substituted commands in the prompt setopt HIST_VERIFY # enable zsh correction # setopt CORRECT # setopt CORRECT_ALL # enable the default zsh completions autoload -Uz compinit && compinit # save command history HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history SAVEHIST=5000 HISTSIZE=2000 # share history across multiple zsh sessions setopt SHARE_HISTORY # append to history setopt APPEND_HISTORY # adds commands as they are typed, not at shell exit setopt INC_APPEND_HISTORY # expire duplicates first setopt HIST_EXPIRE_DUPS_FIRST # do not store duplications setopt HIST_IGNORE_DUPS # ignore duplicates when searching setopt HIST_FIND_NO_DUPS # removes blank lines from history setopt HIST_REDUCE_BLANKS export GPG_TTY=$(tty) # enable git completion zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash fpath=(~/.zsh $fpath) # case insensitive path-completion zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' # partial completion suggestions zstyle ':completion:*' list-suffixes zstyle ':completion:*' expand prefix suffix # minimal aliases alias ..='cd ..' alias ...='cd ../..' alias ls='ls -GwF' alias ll='ls -alh' # VSCode aliases alias zshrc='code ~/.zshrc' alias gitconfig='code ~/.gitconfig' # add Google Cloud SDK command line tools to $PATH source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" eval "$(starship init zsh)" test -e /Users/suzannealdrich/.iterm2_shell_integration.zsh && source /Users/suzannealdrich/.iterm2_shell_integration.zsh || true