#!/bin/sh
#
# one-liner: find . -iname "*$1*" 2>/dev/null

set -e

if command -v fd >/dev/null 2>&1; then
  fd --hidden --ignore-case "$*"
elif command -v fdfind >/dev/null 2>&1; then
  fdfind --hidden --ignore-case "$*"
else
  find . -iname "*$1*" 2>/dev/null
fi
