From 73811d30c8d239a34d6cc0005857feae999ffc03 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 2 Nov 2022 17:11:43 +0100 Subject: [PATCH] Update ssh completion --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index bb29146..71e929a 100644 --- a/zshrc +++ b/zshrc @@ -1864,12 +1864,13 @@ zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories ## Complétion des commandes ssh avec le contenu du fichier ~/.ssh/config et le contenu de host -local HOSTS +#local HOSTS #[[ -f ~/.ssh/config ]] && HOSTS=(`sed -n \'s/^Host \(.*\)/\1/p\' ~/.ssh/config`) #if [ -f ~/.ssh/config ]; then #HOSTS=(`grep ^Host ~/.ssh/config | sed s/Host\ // | egrep -v ‘^\*$’`) #fi #zstyle ':completion:*:(ssh|scp|sftp|sshfs):*' hosts ${HOSTS} +zstyle ':completion:*:hosts' hosts off # Complétions pour certains programmes en fonction des extensions zstyle ':completion:*:*:vlc:*' file-patterns '*.(mkv|MKV|avi|AVI|flv|FLV|mp4|MP4|webm|WEBM|mov|MOV|flac|FLAC|mp3|MP3|ogg|OGG|ogv|OGV|wmv|WMV)\ *(-/):directories'