Skip to content

Instantly share code, notes, and snippets.

@geraldvillorente
Created July 9, 2018 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geraldvillorente/ea7467429939d53ffd3b01826d585376 to your computer and use it in GitHub Desktop.
Save geraldvillorente/ea7467429939d53ffd3b01826d585376 to your computer and use it in GitHub Desktop.
A small bash script to clear the clipboard in MacOS.

Create a file in /usr/local/bin/ and place the below into it.

#!/usr/bin/env bash
pbcopy < /dev/null

Then make the file executable.

sudo chmod +x /usr/local/bin/{FILENAME}

To use, in the terminal just type the filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment