From f151dfedb649bfc648fd8d2403332e61eaa8f841 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 22 Mar 2017 18:19:08 +0100 Subject: [PATCH] correctly prune git-directories for go --- config/fish/functions/go.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/fish/functions/go.fish b/config/fish/functions/go.fish index 7add49b..d40686b 100644 --- a/config/fish/functions/go.fish +++ b/config/fish/functions/go.fish @@ -1,5 +1,5 @@ function go --description 'Jump to directories' - lr /home /data /etc -L -t '(name ~~ "^\." && prune || print) && type = d && !(name = ".git")' \ + lr /home /data /etc -L -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \ | fzf \ | read -l dir [ "$dir" ]; and cd $dir; and clear