From 7aed1474001d32e9322336d79b761bbbbe2954b7 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Fri, 25 Sep 2020 01:36:40 +0200 Subject: [PATCH] zsh: Do not complete arguments twice for trash Also cleanup the comments around that section a bit. --- .config/zsh/.zshrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 16dbb21..6f9a8df 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -109,9 +109,13 @@ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*' menu select zstyle -e ':completion:*:users' users 'local user; getent passwd | while IFS=: read -rA user; do (( user[3] >= 1000 || user[3] == 0 )) && reply+=($user[1]); done' -_comp_options+=(globdots) # Include hidden files -# Don't complete the same twice for diff/meld (http://leahneukirchen.org/dotfiles/.zshrc) -zstyle ':completion:*:(diff|meld):*' ignore-line yes + +# Include hidden files in completion. +_comp_options+=(globdots) + +# Don't complete the same argument twice for these programs. +# Taken from http://leahneukirchen.org/dotfiles/.zshrc +zstyle ':completion:*:(diff|meld|trash):*' ignore-line yes comp-source "$ZSH_CONF/fzf-tab/fzf-tab.plugin.zsh"