Skip to content

Instantly share code, notes, and snippets.

@redraiment
Last active October 23, 2019 01:36
Show Gist options
  • Save redraiment/6505591 to your computer and use it in GitHub Desktop.
Save redraiment/6505591 to your computer and use it in GitHub Desktop.
Z Shell 配置
ZSH在交互方面的确比Bash略胜一筹,但习惯了Bash下大小写无关补全等功能,需要对zsh的默认配置做一些调整。
# 单词分隔符,让zsh有与bash一样的backward-kill-word
export WORDCHARS='*?_[]~=&;!#$%^(){}'
export LESSHISTFILE="$HOME/.emacs.d/history/less"
## 启动自动补全
autoload -U compinit
compinit -C
# 大小写无关
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[ ._-]=* r:|=*' 'l:|=* r:|=*'
# 忽略CVS文件夹
zstyle ':completion:*' ignored-patterns '(|*/)CVS'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment