From 30c500d54b95fe11a18a50c7fba071ad8bb75355 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 1 Apr 2022 06:24:11 -0700 Subject: [PATCH] cds: changed from fzy to fzf (useful options that I may or may not use) --- .config/shell/functions/cds | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/shell/functions/cds b/.config/shell/functions/cds index 862cbaa..5694947 100644 --- a/.config/shell/functions/cds +++ b/.config/shell/functions/cds @@ -2,11 +2,11 @@ # Source this and then run `cds` # cd search: cd to a directory, given part of its name -# Requires: fd, fzy +# Requires: fd, fzf # Usage: takes `fd` arguments cds() { - DIR="$(fd -t d $@ | fzy)" + DIR="$(fd -t d $@ | fzf -1 -q "$SEARCH_TERM" --layout=reverse --info=inline --height=10%)" if [ $? -eq 0 ]; then if [ -f "$DIR" ]; then cd "$(dirname "$DIR")" && pwd