You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
371 B

#!/bin/bash
_find_root() {
fzf << EOF
${HOME}/Documents/Code/BOLIDEN
${HOME}/Documents/Code/VOLVOCARS
${HOME}/Documents/Code/GERSTNER
${HOME}/Documents/Code/REPLYTO
${HOME}/Documents/Code/RISE
EOF
}
root_dir="$(_find_root)"
base_name="$(find "${root_dir}" -type d -mindepth 1 -maxdepth 1 -exec basename {} + 2> /dev/null |fzf)"
echo -e "${root_dir}/${base_name}"