冒号后生成zsh tab-complete路径

时间:2016-10-22 15:48:30

标签: zsh zsh-completion

要快速暂时将目录附加到我的PATH环境变量,我通常会export PATH=$PATH:/some/other/dir zsh :/so<tab>在结肠输入export PATH=/so <tab>后没有制表符完成部分。 键入export PATH=/some/会展开为zsh

=中,制表符完成在:之后但不在zsh之后。 如何让=将冒号视为可以进行制表完成的新单词的开头?

修改更新: 我刚发现 :cmake -DCMAKE_TOOLCHAIN_FILE=~/Foo<tab>阻止制表符完成。尝试展开vared path时,路径也未展开。

我知道~/.zshrc并且我觉得它很酷但是我的老bash习惯常常会开始......

以下是我# The following lines were added by compinstall zstyle ':completion:*' completer _complete _ignored zstyle ':completion:*' max-errors 1 zstyle :compinstall filename '/home/ruschi/.zshrc' autoload -U promptinit && promptinit autoload -Uz colors && colors autoload -Uz compinit && compinit # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 setopt appendhistory extendedglob notify #make zsh use emacs-style keybindings bindkey -e # End of lines configured by zsh-newuser-install # fix <ALT>arrow combinations bindkey ";3D" emacs-backward-word bindkey ";3C" emacs-forward-word 的zsh部分:

docs

0 个答案:

没有答案