From 6cd342740cb0272cd945200ff99ac75470c2db2d Mon Sep 17 00:00:00 2001 From: James Dixon Date: Thu, 27 May 2021 02:10:15 -0400 Subject: [PATCH] add function to bashrc --- files/bash/.bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/bash/.bashrc b/files/bash/.bashrc index 840c6c7..a2d4a95 100644 --- a/files/bash/.bashrc +++ b/files/bash/.bashrc @@ -182,6 +182,11 @@ lg() { lazygit "$*"; } +# colors +colordump(){ + for i in $(seq 0 255); do printf "$(tput setaf $i)$i "; done +} + ## prompt stuff ## # git prompt function @@ -230,6 +235,9 @@ if ! shopt -oq posix; then fi fi +# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards +[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2- | tr ' ' '\n')" scp sftp ssh; + ## extra paths ## # local bins