我在学校里经常使用很多文件夹来组织我的课程,而我通常只是在另一个文件夹中单独拥有一个文件夹,我知道,将来我会添加更多的文件夹。例如,Folder0 -> Folder1本身就是->多个文件。
我的问题是,当我做cd时,尝试在shell中自动完成选项卡,没有任何东西在它后面,它向我展示了比预期更多的东西,因此不能直接工作,如下面的屏幕截图所示。

这正常吗?如果是,我如何禁用它,以便我可以自动完成直接进入我的唯一文件夹?
已经谢谢了
编辑:这是我的~/..bashrc文件的内容。我在Bash中使用终止符-它是一个简单的框架:
cat ~/.bashrc
#!/usr/bin/env bash
# Path to the bash it configuration
export BASH_IT="/home/samuel/.bash_it"
# Lock and Load a custom theme file.
# Leave empty to disable theming.
# location /.bash_it/themes/
export BASH_IT_THEME='bakke'
# (Advanced): Change this to the name of your remote repo if you
# cloned bash-it with a remote other than origin such as `bash-it`.
# export BASH_IT_REMOTE='bash-it'
# Your place for hosting Git repos. I use this for private repos.
export GIT_HOSTING='git@git.domain.com'
# Don't check mail when opening terminal.
unset MAILCHECK
# Change this to your console based IRC client of choice.
export IRC_CLIENT='irssi'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set Xterm/screen/Tmux title with only a short hostname.
# Uncomment this (or set SHORT_HOSTNAME to something else),
# Will otherwise fall back on $HOSTNAME.
#export SHORT_HOSTNAME=$(hostname -s)
# Set Xterm/screen/Tmux title with only a short username.
# Uncomment this (or set SHORT_USER to something else),
# Will otherwise fall back on $USER.
#export SHORT_USER=${USER:0:8}
# Set Xterm/screen/Tmux title with shortened command and directory.
# Uncomment this to set.
#export SHORT_TERM_LINE=true
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/djl/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
# (Advanced): Uncomment this to make Bash-it reload itself automatically
# after enabling or disabling aliases, plugins, and completions.
# export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1
# Uncomment this to make Bash-it create alias reload.
# export BASH_IT_RELOAD_LEGACY=1
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# Nodejs
VERSION=v10.16.3
DISTRO=linux-x64
export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH
#aliases
alias upgradeall='sudo apt update;sudo apt upgrade'
alias open='xdg-open'
# Load Bash It
source "$BASH_IT"/bash_it.sh
# pip bash completion start
_pip_completion()
{
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip
# pip bash completion end发布于 2019-09-24 07:40:14
经过长时间的研究,我终于找到了答案。如果您使用Bash作为您的SHELL,请确保使用bash-it disable completion system禁用系统完成。
然后,当然,重新加载您的bash,您的完成将很好地工作,而不显示compgen-v的全部输出。
https://askubuntu.com/questions/1175860
复制相似问题