Skip to content

Instantly share code, notes, and snippets.

@noahrichards
Created March 12, 2021 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahrichards/09ae480a0e874c5371dde6b9c0f29c38 to your computer and use it in GitHub Desktop.
Save noahrichards/09ae480a0e874c5371dde6b9c0f29c38 to your computer and use it in GitHub Desktop.
# vim for everything!
EDITOR="vim"
VISUAL="vim"
# Make vim use tabs, please.
alias vim="vim -p"
# Yup, definitely worked at Google.
alias blaze='bazel'
GIT_PS1_SHOWDIRTYSTATE='yesplz'
# Set prompt to this (with colors):
# user@host [path]
PROMPT='%F{green}%n%m%f [%F{blue}%~%f]%# '
# Case-insensitive globbing
setopt NO_CASE_GLOB
# Typing a raw directory name will automatically `cd` to it.
setopt AUTO_CD
# History
#
# Save history between runs.
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
# Share it across sessions.
setopt SHARE_HISTORY
# Append it (immediately)
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
# Get rid of dups when storing and searching.
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_FIND_NO_DUPS
setopt HIST_REDUCE_BLANKS
# When using !!, make me hit enter to confirm.
setopt HIST_VERIFY
# Correct my typos, please!
setopt CORRECT
setopt CORRECT_ALL
autoload -Uz compinstall
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}'
zstyle :compinstall filename '/Users/noah/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment