Skip to content

Instantly share code, notes, and snippets.

@yuya-takeyama
Last active September 19, 2016 07:01
Show Gist options
  • Save yuya-takeyama/405fe83a20665fd75b6997fd2fb43f28 to your computer and use it in GitHub Desktop.
Save yuya-takeyama/405fe83a20665fd75b6997fd2fb43f28 to your computer and use it in GitHub Desktop.
ローカルに保存する Gyazo っぽいやつ
#!/bin/bash -e
selfname=$(basename "${0}")
output="${1}"
if [ -z "${output}" ]; then
echo "Usage: ${selfname} file" >&2
exit 1
fi
screencapture -i "${output}"
echo "${output}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment