#!/bin/sh # CD into chosen directory, otherwise terminate fcd() { cd "$(fd -t d -E Digital/D1 -E /home/black/Games | fzf --reverse || exit)" } fcd if [ $? -eq 0 ]; then exec "$SHELL" #-i fi