[ -z "$1" ] && {
    echo "Missing path parameter!" >&2
    return 1
}

full_path="$(readlink -e "$1")"

[ ! -d "$full_path" ] && {
    echo "Path doesn't exist!" >&2
    return 1
}

export PATH="$full_path:$PATH"

# vim: ft=sh
