From 1bb7eb9fb853567034097aacd9c26c5f9d69a002 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 25 May 2020 11:57:27 +0100 Subject: [PATCH] Makes ctrl+t and alt+c shortcuts exclude node_modules --- shells/zsh/includes/fzf.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shells/zsh/includes/fzf.zsh b/shells/zsh/includes/fzf.zsh index ae9d60d8..e0ef6f4a 100644 --- a/shells/zsh/includes/fzf.zsh +++ b/shells/zsh/includes/fzf.zsh @@ -24,13 +24,13 @@ if [ "$sourced" = "True" ]; then fzf_files(){ # The directory can be passed as arg1 dir="${1:-$PWD}" - fd --type f --hidden --follow --color=always --exclude .git --exclude .PlayOnLinux --exclude "PlayOnLinux's virtual drives" . "$dir" + fd --type f --hidden --follow --color=always --exclude node_modules --exclude .git --exclude .PlayOnLinux --exclude "PlayOnLinux's virtual drives" . "$dir" } fzf_dirs(){ dir="${1:-$PWD}" - fd --type d --hidden --follow --color=always --exclude .git --exclude .PlayOnLinux --exclude "PlayOnLinux's virtual drives" . "$dir" + fd --type d --hidden --follow --color=always --exclude node_modules --exclude .git --exclude .PlayOnLinux --exclude "PlayOnLinux's virtual drives" . "$dir" } # This function is used to provide the ctrl+t completion for fzf