Add contents of ReadingList.sh to .bashrc or .zshrc etc.
atrl URL
atrl http://google.com
| function atrl(){ | |
| if [ -z $1 ] | |
| then | |
| echo Add To Reading List | |
| echo | |
| echo Usage: atrl URL | |
| return | |
| fi | |
| osascript -e 'tell application "Safari" to add reading list item "'$1'"' | |
| } |