From 2b0a21f82f3483b0ddb1363fb356d26f28d7a0f4 Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Wed, 22 Jan 2020 13:21:58 +0100 Subject: [PATCH] Remove special treatment for hosts completion --- S40_completion | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/S40_completion b/S40_completion index 4c2d9af..ca636bf 100644 --- a/S40_completion +++ b/S40_completion @@ -2,18 +2,4 @@ autoload -U compinit -hosts=($( ( \ - ( [ -r ~/.ssh/config ] && awk '/^host +[a-z]/ { print $2 }' ~/.ssh/config) ; \ - ( [ -r ~/.ssh/known_hosts ] && awk '{print $1}' ~/.ssh/known_hosts | tr , '\n') \ -) | sort -u)) - -zstyle ':completion:*:hosts' hosts $hosts -zstyle ':completion:*:(ssh|scp|sftp):*' hosts $hosts -zstyle ':completion:*:hosts' list-colors '=(#b)(*)(.lln.iba)=01;30=01;31' '=[^.]#=01;31' - -users=(atihon ccadmin tcsadmin tcs clinical root) -zstyle ':completion:*' users $users - -compdef _hosts cc_sync - compinit -- 2.39.2