Last active
October 21, 2021 19:18
-
-
Save LeeFlannery/be1a3e16c5cde15950dc2b4dadb3f357 to your computer and use it in GitHub Desktop.
.zshrc
This file contains 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
# .zshrc | |
# | |
# `.zshrc' is sourced in interactive shells. | |
# It should contain commands to set up aliases, functions, options, key bindings, etc. | |
# | |
# See https://zsh.sourceforge.io/Intro/intro_3.html | |
# turn on auto cd | |
# Using the AUTOCD option, you can simply type the name of a directory, and it will become the current directory. | |
# See https://zsh.sourceforge.io/Intro/intro_16.html | |
setopt AUTO_CD | |
# Enable correction | |
# CORRECT turns on spelling correction for commands, and the CORRECTALL option turns on spelling correction for all arguments. | |
# https://zsh.sourceforge.io/Intro/intro_16.html | |
setopt CORRECT | |
setopt CORRECT_ALL | |
# set case insensitive globbing (wildcard expansion) | |
setopt NO_CASE_GLOB | |
# turn on tab completion system | |
autoload -Uz compinit && compinit | |
# 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 | |
# Set up "brewup" alias, run frequently to keep Homebrew installs clean | |
alias brewup='brew update; brew upgrade; brew cleanup; brew doctor' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment