1104
# cd to a first sorted folder, exclude hidden
first() {
local first
first="$(
find . -mindepth 1 -maxdepth 1 -type d ! -name '.*' -printf '%f\n' \
| sort \
| head -n 1
)"
if [[ -z "$first" ]]; then
echo "no folders"
return 1
fi
cd "./$first"
}