1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-02 03:33:25 -07: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() { ### @- dirview() { ### @-
### use a fuzzy finder to select a recent directory in the directory stack ### use a fuzzy finder to select a recent directory in the directory stack
### and change to it without consuming the prompt. ### and change to it without consuming the prompt.
local fuzzy="$(has fzy || print)" local fuzzy="$(have fzy || print)"
print print
if [ -n "$fuzzy" ]; then if [ -n "$fuzzy" ]; then
local d="$(dirs -pl | awk '!seen[$0]++' | "$fuzzy")" local d="$(dirs -pl | awk '!seen[$0]++' | "$fuzzy")"