From a0cdccfa06dddd4f720f6bc4d92bb7e91c3410c6 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 1 Apr 2022 11:47:47 -0700 Subject: [PATCH] cds: cds no longer takes `fd` arguments, and instead takes just a search term --- .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 5694947..c649617 100644 --- a/.config/shell/functions/cds +++ b/.config/shell/functions/cds @@ -3,10 +3,10 @@ # cd search: cd to a directory, given part of its name # Requires: fd, fzf -# Usage: takes `fd` arguments +# Usage: cds "Search Term" cds() { - DIR="$(fd -t d $@ | fzf -1 -q "$SEARCH_TERM" --layout=reverse --info=inline --height=10%)" + DIR="$(fd -t d | fzf -1 -q "$1" --layout=reverse --info=inline --height=10%)" if [ $? -eq 0 ]; then if [ -f "$DIR" ]; then cd "$(dirname "$DIR")" && pwd