Skip to content

Comments

remove cleaning PS1 before init#16

Open
LuckySB wants to merge 1 commit intoComcast:masterfrom
southbridgeio:fix_completion
Open

remove cleaning PS1 before init#16
LuckySB wants to merge 1 commit intoComcast:masterfrom
southbridgeio:fix_completion

Conversation

@LuckySB
Copy link

@LuckySB LuckySB commented Nov 11, 2020

OS: Centos7
pkg: bash-completion-2.1-8.el7.noarch.rpm

/etc/profile.d/bash_completion.sh

# Check for interactive bash and that we haven't already been sourced.
[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ] && return

so, when PS1="" - no source /usr/share/bash-completion/bash_completion
and type -t _get_comp_words_by_ref return empty string
autocomplete not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant