From eed51e13f30ea61b3c749a2e7d16230efe500e03 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 3 Jan 2017 15:36:06 +0100 Subject: [PATCH] better go --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 54d2fee..5f1dbf5 100644 --- a/zshrc +++ b/zshrc @@ -53,7 +53,8 @@ alias copy='urxvtc' # FZF function go() { - dir="$(lr /home /data -L -t 'type = d' | fzf)" + #dir="$(find -L /home /data /etc -name "\.*" -prune , -type d \! -name '.git' 2>/dev/null | fzf)" + dir="$(lr /home /data /etc -L -t '(name ~~ "\.*" && prune || print) && type = d && !(name = ".git")' | fzf)" [ -n "$dir" ] && cd "$dir" || false }