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
375 B

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