_f_do_as() {
    local file_name="$1"
    shift # Remove the first argment (the file)
    if [ -r "$file_name" ]; then
       $@
    else
       $USE_SUPER $@
    fi
}

if [ -f ~/scripts/helper/scan_aliases.sh ]; then
   source ~/scripts/helper/scan_aliases.sh
else 
    SANE_TEST_FAILED=0
fi

if [ $SANE_TEST_FAILED -eq 0 ]; then
    # Load aliases from ~/.aliases.d
    if [ -d ~/.aliases.d ]; then
        for f in ~/.aliases.d/*.sh; do
            [ -r "$f" ] && . "$f"
        done
    fi
fi
