From 7f6a620aa46d5d46df3f0974e64208e8da7b9234 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 20 Dec 2016 15:04:50 +0100 Subject: [PATCH] use fzf similar to procrat --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index be2e3e4..54d2fee 100644 --- a/zshrc +++ b/zshrc @@ -51,6 +51,12 @@ alias agent='eval "$(ssh-agent)" && ssh-add' # Cloning my terminal alias copy='urxvtc' +# FZF +function go() { + dir="$(lr /home /data -L -t 'type = d' | fzf)" + [ -n "$dir" ] && cd "$dir" || false +} + # Base16 Shell BASE16_SHELL="$HOME/.config/base16-shell/base16-greenscreen.dark.sh" BASE16_SHELL="$HOME/.config/base16-shell/base16-3024.dark.sh"