start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/sh | |
| # | |
| # Setup a work space called `work` with two windows | |
| # first window has 3 panes. | |
| # The first pane set at 65%, split horizontally, set to api root and running vim | |
| # pane 2 is split at 25% and running redis-server | |
| # pane 3 is set to api root and bash prompt. | |
| # note: `api` aliased to `cd ~/path/to/work` | |
| # | |
| session="work" |
| import UserNotifications | |
| // 1. Request Permission | |
| func requestAuthorization() { | |
| UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound]) { (granted, error) in | |
| if granted { | |
| // Success | |
| } else { | |
| // Error | |
| print(error?.localizedDescription) |