Preferences > General > Preferences > Load preferences from a custom folder or URL
You can save your preferences and load them as required.
Use this to command to set the location of the iterm config folder:
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "/path/to/iterm config folder"
Then as long as that folder exists and contains your preferred settings, when iTerm opens up it'll be exactly like you want it. (though it would have been nice if this just defaulted to $HOME/.config/iTerm)It’s weird to hear someone proficient enough to be talking about bootstrapping a dev machine complain about solving a very trivial problem.
I have set PREFIX to be ctrl-a, which mimics GNU screen.
'Ctrl-a m' toggles "mouse" mode, which allows you to resize windows and set focus with the mouse.
https://raw.githubusercontent.com/jftuga/universe/master/tmu...
However now that I don’t daily drive mac as much, I’ve defaulted back to iTerm 2 for when I do happen to be doing something on my mac. The default configuration is quite good out of the box. All I really need to do post-install is get my beloved zsh + ohmyzsh plug-ins and I’m good to go :-)
And also my tmux dot files ;)
Like holy crap, it's a very well written and well thought out piece of software. And it's fast. I'm all about the Rust hype, but Kitty reduced latency drastically.
I don't really notice any difference in doing day-to-day stuff, but I tried out tree across my entire ~/projects dir and got the following results:
XTERM:
28032 directories, 196844 files tree projects 0.65s user 1.19s system 56% cpu 3.229 total
KITTY:
28032 directories, 196844 files tree projects 0.62s user 0.75s system 55% cpu 2.475 total
There's even a system wide equivalent at /Library/Preferences
Of course if you're using a lot of cross platform stuff it tends to ignore those conventions in favor of a bunch of ~/.stuff/ folders
But apps that play by Apple's ideas do generally do this. Application Support is more for files rather than settings.
I moved to tmux + Alacritty [1] (Rust hype and speeed) which is cross-platform and only needs its config file, a nice and clean yaml, in the right place to restore it as I want. Now when I full wipe my Mac I just need to run the script that pulls the config file from GitHub and tada! Also, the configuration file is almost identical to my Linux one so I can move around similarly and have a consistent look.
I'm also used to replace macOS programs like `sed`,`grep`,`getopt`,`ssh` (macOS OpenBSD one won't work with Yubikey),`coreutils` and `awk` with the GNU version. You can download them with Homebrew and to replace them with the macOS default ones you just need to put them at the beginning of your path like this:
[1]: https://github.com/alacritty/alacritty