Skip to content

Instantly share code, notes, and snippets.

@note103

note103/.bashrc Secret

Last active April 12, 2020 16:03
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 note103/715ddf2907fbe2ffa27d8c3b2afd5ce4 to your computer and use it in GitHub Desktop.
Save note103/715ddf2907fbe2ffa27d8c3b2afd5ce4 to your computer and use it in GitHub Desktop.
# .bashrc
# Replace "***" to your project ID.
function m {
local msg="$@"
if [ -z "$msg" ]; then return; fi
LANG=C
local ymd=$(date +%Y-%m-%d)
local time=$(date +%H:%M:%S)
if [ ! -z "$msg" ]; then
open "https://scrapbox.io/***/$ymd?body=$msg $time
"
fi
LANG=ja_JP.UTF-8
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment