Last active
March 26, 2023 02:06
-
-
Save henrik242/8d039c06d8131863b510cc037635f977 to your computer and use it in GitHub Desktop.
Run shell command in background upon macOS login, using tmux
This file contains 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
#!/usr/bin/env bash | |
# | |
# Make this file executable with `chmod +x run-script-in-background.command`, and add it to | |
# System Preferences --> Users and Groups --> Startup Items. It needs to have the `.command` suffix. | |
# | |
tmux new-session -d -s ostepop \; send -t ostepop.0 "echo Let\'s do this\!; echo More stuff." ENTER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment