#!/bin/bash selection=$(fzf) selection=$(echo $selection | sed 's,/[^/]*$,,') if [ ! $selection = "\S" ]; then cd $selection fi