From 90d1c0ce3e80b227a2a2cb91ee4dfcc57785b696 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sun, 1 Dec 2024 16:58:54 -0800 Subject: [PATCH] beatific: exclude blocked hosts from ssh tab complete --- modules/bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/bashrc b/modules/bashrc index a1cabc0..1a2db23 100644 --- a/modules/bashrc +++ b/modules/bashrc @@ -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 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=