Dotfiles. Mainly centered around π fish, π stow, πΊ brew and π§βπ³ mise.
- Different profiles
cdis zoxidelsis ezapingis pingu, noot nootfuckfor fuckupsnaviwith Ctrl-gmcflywith Ctrl-r- Search directory with Ctrl-Alt-F
- Search git log with Ctrl-Alt-L
- Search git status with Ctrl-Alt-S
- Search processes with Ctrl-Alt-P
- Search variables with Ctrl-V
g[alias]abbreviates togit [alias]
Hey future me! For a complete fresh setup:
- Run
xcode-select --installto install git - Install homebrew
- Clone this repo into your home directory (~/dotfiles)
cd ~/dotfiles && stow --no-folding .~/dotfiles/macos.shbrew bundle
Create the file in the ~/dotfiles directory, as if it were the home directory. Then run:
dot sync
# This will run: stow --no-folding .To track an existing file in the home directory, create an empty file in this project as if the project root were the home directory. Then run:
dot adopt
# This will run: stow --adopt .dot pull
# This will do a git pull of the dotfiles repo and then run syncUse brew bundle [-g] [add|remove|cleanup|install] to manage installations via brew, so the brewfile is automatically updates. Read more
- Run inside
~/Developer/[profile]to install for the current machine - Run with
-gto install for all machines
To backup the current macos settings, run:
prefs-export --output-directory ~/.config/defaultsThen look into the output directory's exec-defaults.sh file and copy the defaults to macos.sh.
I can run those dotfiles on different machines with different configurations based on the FISH_PROFILE_NAME environment variable.
I use Homebrew (via brew bundle) for everything where I just want the latest version.
I use mise for stuff where I'm interested in a specific version, or for global npm packages.