From 27f3dee5dbcf9495704e23d1df0a42e8d1790968 Mon Sep 17 00:00:00 2001 From: omri Date: Sat, 9 Dec 2023 20:19:11 +0200 Subject: [PATCH] scripts: update fzfcd to fish --- .config/scripts/util/cdfzf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/scripts/util/cdfzf b/.config/scripts/util/cdfzf index a43e8fa..1759611 100644 --- a/.config/scripts/util/cdfzf +++ b/.config/scripts/util/cdfzf @@ -1,8 +1,8 @@ -#!/bin/bash -selection=$(fzf) +#!/bin/fish +set selection (fzf) -selection=$(echo $selection | sed 's,/[^/]*$,,') +set selection (echo $selection | sed 's,/[^/]*$,,') -if [ ! $selection = "\S" ]; then +if [ ! $selection = "\S" ] cd $selection -fi +end