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