Skip to content

Instantly share code, notes, and snippets.

@drye
Last active February 17, 2023 13:09
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 drye/95700a2a2470719f80f3ce53f29538db to your computer and use it in GitHub Desktop.
Save drye/95700a2a2470719f80f3ce53f29538db to your computer and use it in GitHub Desktop.
Open last saved Slack bookmark
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open last Slack boomark
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🧍
# @raycast.argument1 { "type": "text", "placeholder": "days", "optional": true }
# Documentation:
# @raycast.description Open current daily standup bookmark
# @raycast.author Primož Verdnik
# @raycast.authorURL https://github.com/drye
DAY=${1:-1}
echo $DAY
tail -n $DAY slack-bookmarks.txt | xargs open
echo "Opening in slack ✅"
@drye
Copy link
Author

drye commented Feb 17, 2023

Usage

Run the script and the last stored Slack bookmark in the slack-bookmarks.txt file will open in your browser.

Note: this is the counterpart script to Push Slack Bookmark

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