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.
| # remap prefix to Control + a | |
| set -g prefix C-a | |
| unbind C-b | |
| # quick pane cycling | |
| unbind ^A | |
| bind ^A select-pane -t :.+ | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' |
| # Your snippets | |
| # | |
| # Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
| # expand the prefix into a larger code block with templated values. | |
| # | |
| # You can create a new snippet in this file by typing "snip" and then hitting | |
| # tab. | |
| # | |
| # An example CoffeeScript snippet to expand log to console.log: | |
| # |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "mocha": true, | |
| "es6": true, | |
| "amd": true | |
| }, | |
| "globals": { |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "mocha": true, | |
| "es6": true, | |
| "amd": true | |
| }, | |
| "globals": { |
| export LANG=en_US.UTF-8 | |
| #export PRIMARY_FG=white | |
| export ZSH=/Users/roman.rogozhnikov/.oh-my-zsh | |
| ZSH_THEME="robbyrussell" | |
| plugins=(git tmux kubectl docker minikube node ruby mvn jsontools java yarn npm helm vscode terraform) | |
| export EDITOR='nvim' | |
| export TERM=screen-256color | |
| # export ZSH_TMUX_AUTOSTART=true | |
| # export ZSH_TMUX_AUTOSTART_ONCE=true |