beatific: exclude blocked hosts from ssh tab complete

This commit is contained in:
Tim Van Baak 2024-12-01 16:58:54 -08:00
parent 02d03af96d
commit 90d1c0ce3e

View File

@ -35,3 +35,8 @@ _SSH='$([ ! -z "$SSH_CLIENT" ] && echo "=>")'
export PS1="$_SET_TITLE_BAR$_DIM[\A \u@$_RESET$_HOST\h$_DIM:$_RESET$_GREEN$_DIR$_RESET$_DIM]$_SHLVL$_RESET " export PS1="$_SET_TITLE_BAR$_DIM[\A \u@$_RESET$_HOST\h$_DIM:$_RESET$_GREEN$_DIR$_RESET$_DIM]$_SHLVL$_RESET "
export HISTCONTROL=ignoreboth export HISTCONTROL=ignoreboth
# Suppress ssh completion from /etc/hosts
# This used to be COMP_KNOWN_HOSTS_WITH_HOSTFILE so most search results refer to it under that name
# This is necessary to avoid StevenBlack blocks appearing in ssh tab completions
export BASH_COMPLETION_KNOWN_HOSTS_WITH_HOSTFILE=