Recently Written · git

sbm

dmenu bookmarks. Instantly fuzzy search thousands of bookmarks and plumb them. LOOKING FOR SUCKLESS SOFTWARE EDITION? GO TO sbm-suckless INSTEAD

git clone https://github.com/equwal/sbm

Log | Files | Refs


contrib/macos/sbm (418 bytes)

1 #!/bin/sh
2 
3 # sbm: the program of sbm.app. It opens a Terminal window that runs
4 # sbm-run. The first time, macOS asks if sbm can control Terminal.
5 
6 run=$(cd "$(dirname "$0")/../Resources" && pwd)/sbm-run
7 exec osascript \
8     -e 'on run argv' \
9     -e 'tell application "Terminal"' \
10     -e 'activate' \
11     -e 'do script (quoted form of item 1 of argv) & "; exit 0"' \
12     -e 'end tell' \
13     -e 'end run' \
14     "$run"