Xio*_*345 4 bash autocomplete autojump
在我的配置中,自动跳转自动完成功能似乎不起作用。需要明确的是,自动跳转可以正常工作,只有自动完成功能无法工作。
当我按下该<TAB>键时,不会显示自动完成菜单,但我输入的目录名称部分用引号引起来。
这是发生的事情。请注意,输入 liba 后,我<TAB>多次按下该键。我本来希望 autojump 能够循环通过/tmp/liba1和/tmp/liba2。也不是/tmp/liba2只有在我按下该<ENTER>键后才会出现。

我在用 :
这是我的文件的底部.bashrc:
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# Liquidprompt
source ~/.liquidprompt/liquidprompt
# Autojump
. /usr/share/autojump/autojump.bash
Run Code Online (Sandbox Code Playgroud)
显然这是一个自动跳转错误:Bad bash tab finish #228。手动安装最新版本的 autojump 可以解决该问题。
git clone git://github.com/joelthelion/autojump.git
cd autojump
./install.py
vim ~/.bashrc
# Add line [[ -s /home/fabien/.autojump/etc/profile.d/autojump.sh ]] &&
# source /home/fabien/.autojump/etc/profile.d/autojump.sh
Run Code Online (Sandbox Code Playgroud)