-
-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh completion doesn't include global ssh hosts #568
Comments
Those files are supposed to be included by A problem could be that the |
@akinomyoga Speaking of scop/bash-completion , what is the best way to include that? I've added a small bash.completion.sh plugin... #! bash oh-my-bash.module
#
# bash-completion
# https://github.com/scop/bash-completion
if [[ $PS1 ]]; then
# Use _omb_util_command_exists() for bash_completion's have() command
have()
{
unset -v have
_omb_util_command_exists "$1"
}
# Custom BASH_COMPLETION_DIR
if [[ -f ${BASH_COMPLETION_DIR}/bash_completion ]]; then
. ${BASH_COMPLETION_DIR}/bash_completion
# Config directory
elif [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion/bash_completion" ]]; then
. ${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion/bash_completion
# /usr/share/bash-completion
elif [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion
# /sw/etc/bash_completion
elif [[ -f /sw/etc/bash_completion/bash_completion ]]; then
. /sw/etc/bash_completion/bash_completion
fi
# The have() command is no longer needed
unset -v have
fi |
It's already loaded as a default set of configurations: oh-my-bash/lib/bourne-shell.sh Lines 106 to 115 in f53beb6
However, there is an open PR #572 to move it to a plugin. |
It would be good if ssh completion could include global hosts from
/etc/ssh/ssh_known_hosts
and/etc/ssh/ssh_config
Would be good to also support
/etc/ssh/ssh_config.d/*
in the same way as #529 is about toThe text was updated successfully, but these errors were encountered: