Last active
October 23, 2019 01:36
-
-
Save redraiment/6505591 to your computer and use it in GitHub Desktop.
Z Shell 配置
This file contains hidden or 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
ZSH在交互方面的确比Bash略胜一筹,但习惯了Bash下大小写无关补全等功能,需要对zsh的默认配置做一些调整。 |
This file contains hidden or 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
# 单词分隔符,让zsh有与bash一样的backward-kill-word | |
export WORDCHARS='*?_[]~=&;!#$%^(){}' | |
export LESSHISTFILE="$HOME/.emacs.d/history/less" |
This file contains hidden or 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
## 启动自动补全 | |
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