add function to bashrc

This commit is contained in:
James Dixon 2021-05-27 02:10:15 -04:00
parent 6f433bfa3a
commit 6cd342740c

View File

@ -182,6 +182,11 @@ lg() {
lazygit "$*"; lazygit "$*";
} }
# colors
colordump(){
for i in $(seq 0 255); do printf "$(tput setaf $i)$i "; done
}
## prompt stuff ## ## prompt stuff ##
# git prompt function # git prompt function
@ -230,6 +235,9 @@ if ! shopt -oq posix; then
fi fi
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 ## ## extra paths ##
# local bins # local bins