In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py)
Save and open the script in your editor of choice.
| #!/bin/bash | |
| if ! [ $# -eq 1 ]; then | |
| echo "Usage: $0 <node-name>" | |
| exit 1 | |
| fi | |
| # Make sure you have all dependencies: | |
| # yum -y install libguestfs-tools virt-install |