autoload -U compinit promptinit autoload -U colors && colors compinit -d ${HOME}/.cache/.zcompdump promptinit #Check sanity of configuration values, and warn user if they are outdated/don't exist if [ -z ${AUTO_CD+x} ] then printf "AUTO_CD is unset! Check example_configs/zsh.conf for the latest options.\nDefaulting $(tput setaf 2)$(tput bold)AUTO_CD$(tput sgr0) to $(tput setaf 3)$(tput bold)true$(tput sgr0).\n\n" AUTO_CD=true fi if [ -z ${HISTORY_HIDE_SPACE+x} ] then printf "HISTORY_HIDE_SPACE is unset! Check example_configs/zsh.conf for the latest options.\nDefaulting $(tput setaf 2)$(tput bold)HISTORY_HIDE_SPACE$(tput sgr0) to $(tput setaf 3)$(tput bold)true$(tput sgr0).\n\n" HISTORY_HIDE_SPACE=true fi if [ -z ${HISTORY_NO_DUPS+x} ] then printf "HISTORY_NO_DUPS is unset! Check example_configs/zsh.conf for the latest options.\nDefaulting $(tput setaf 2)$(tput bold)HISTORY_NO_DUPS$(tput sgr0) to $(tput setaf 3)$(tput bold)true$(tput sgr0).\n\n" HISTORY_NO_DUPS=true fi if [ -z ${COMPLETION_STYLE+x} ] then printf "COMPLETION_STYLE is unset! Check example_configs/zsh.conf for the latest options.\nDefaulting $(tput setaf 2)$(tput bold)COMPLETION_STYLE$(tput sgr0) to $(tput setaf 3)$(tput bold)bash$(tput sgr0).\n\n" COMPLETION_STYLE=true fi #Set options if [ $AUTO_CD = true ] then setopt autocd fi unsetopt beep if [ $HISTORY_HIDE_SPACE = true ] then setopt HIST_IGNORE_SPACE fi if [ $HISTORY_NO_DUPS = true ] then setopt HIST_IGNORE_DUPS fi if [ $COMPLETION_STYLE = bash ] then setopt noautomenu fi if [ $CASE_SENSITIVE = false ] then zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' fi