https://github.com/ohmyzsh/ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
https://github.com/romkatv/powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
You generally install oh my zsh plugins to the plugins folder. The following plugins need to be manually installed.
alias dotfile="GIT_DIR=$HOME/.dotfiles.git/ GIT_WORK_TREE=$HOME"
git clone --bare git@github.com:adithyabsk/dotfiles.git $HOME/.dotfiles.git
dotfile git remote add private [REDACTED]
dotfile git fetch private
dotfile git checkout private
dotfile git config --local status.showUntrackedFiles no
# dotfile pre-commit install # once brew dependencies are installed
The first command dumps your brew installed files to a Brewfile
. The second
command checks if you are in sync with a particular Brewfile
. The third
command installs all dependencies in your Brewfile
and also creates a
Brewfile.lock.json
.
dotfile git checkout private
brew bundle dump --describe
brew bundle check --file=Brewfile
brew bundle install --force-bottle
dotfile git checkout private
rm Brewfile
brew bundle dump --describe
dotfile git diff Brewfile
brew bundle check --no-upgrade
Make sure that you are ready to upgrade certain packages. (This may take some time)
This should generate an updated Brewfile.lock.json
.
dotfile git checkout private
brew bundle check -v
brew bundle install --no-upgrade
# brew bundle install
Run through your Brewfile
and remove files as needed. Check that the file is
not a dependency of another package:
brew uses --installed [PACKAGE]
dotfile git checkout master
# Now make the changes
Then, to keep the private repo in sync
dotfile git checkout private
dotfile git merge master
To list all tracked files, run: dotfile git ls-tree -r main --name-only
- Link auto dark mode
ln -s scripts/auto_dark_mode.py ~/Library/Application\ Support/iTerm2/Scripts/auto_dark_mode.py
- Scripts > Enable Python API
- Point iTerm2 to the config file checked into git
- Preferences > General > Preferences > Load preferences from a custom
folder or URL :
~/settings/
- Preferences > General > Preferences > Load preferences from a custom
folder or URL :
- The following are the manual changes that were made but are saved in the
settings config file that we point to above.
- Install this color profile
- Add the ability to use option to move forward and backward in text
- Preferences > Profiles > Keys > Key Mappings> Presets... > Natural Text Editing
This script will configure a new machine with settings.
python scripts/config.py