unixorn/tumult.plugin.zsh

View on GitHub
bin/google

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash

if [ "$(uname -a | grep -ci DARWIN)" != 1 ]; then
  echo "Sorry, this script only works on macOS"
  exit 1
fi

IFS='+'
query="$*"

exec open "https://www.google.com/#q=${query}"