1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 13:19:03 -08:00

fix fzy check for real this time

This commit is contained in:
Connor Olding 2021-10-21 17:01:23 +02:00
parent 713f352c2c
commit 13149ff607

View file

@ -95,7 +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)"
local fuzzy="$(have fzy || print)"
print
if [ -n "$fuzzy" ]; then
local d="$(dirs -pl | awk '!seen[$0]++' | "$fuzzy")"