From b04c717608b62b982f368aa1f73981bdb24602a7 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 18 Oct 2021 17:34:36 -0700 Subject: [PATCH] fix detecting `fzy` in `dirview` --- home/zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home/zshrc b/home/zshrc index cea8877..5ea5a01 100644 --- a/home/zshrc +++ b/home/zshrc @@ -71,8 +71,6 @@ preload=dummy . ~/.sh unset preload -local fuzzy=`has fzy || print` - dirprev() { ### @- ### rotate and change to the previous directory in the directory stack ### without consuming the prompt. @@ -97,6 +95,7 @@ dirup() { ### @- dirview() { ### @- ### use a fuzzy finder to select a recent directory in the directory stack ### and change to it without consuming the prompt. + local fuzzy="$(has fzy || print)" print if [ -n "$fuzzy" ]; then local d="$(dirs -pl | awk '!seen[$0]++' | "$fuzzy")"