Skip to content

Instantly share code, notes, and snippets.

@duese
Created December 30, 2015 09:04
Show Gist options
  • Save duese/71746f4f7c5fad9b7925 to your computer and use it in GitHub Desktop.
Save duese/71746f4f7c5fad9b7925 to your computer and use it in GitHub Desktop.
Copies the current date to clipboard. Assign a shortcut to this script so you can insert the current date whenever you need it. Ideal for filenames.
#/bin/bash
echo -n $(date +"%Y-%m-%d-") | xsel -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment