is_command() {
  command -v -- "$1" >/dev/null
}
if is_command gdate; then
  date()
  {
    gdate "$@"
  }
fi
