Last active
February 17, 2023 13:09
-
-
Save drye/95700a2a2470719f80f3ce53f29538db to your computer and use it in GitHub Desktop.
Open last saved Slack bookmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ✅" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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