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.
The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.
Vist iTerm2 homepage or use brew install iterm2-beta to download the beta. Thanks @stefanwascoding.
switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:| Template.registerHelper('meteorSettings', function(settings) { | |
| var setting = Meteor.settings.public; | |
| if (settings) { | |
| var eachSetting = settings.split('.'); | |
| for (i = 0; i < eachSetting.length; i++) { | |
| setting = setting[eachSetting[i]]; | |
| } | |
| } | |
| return setting; | |
| }); |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| echo "restart Xvfb" | |
| kill -9 `ps aux | grep Xvfb | grep -v grep | awk '{print $2}'` | |
| sleep 3 | |
| nohup Xvfb :10 -ac > /tmp/Xvfb.log 2>&1 & | |
| echo "Xvfb started" | |
| exit |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |