mac2k is a set of handcrafted configs for setting up a complete dev environment on Mac OS.
It makes developing on Mac much more pleasant for CLI lovers.
- Sets up a complete dev environment within minutes
- Sets up brew and installs essential packages with Brewfile
- Configures optimal settings for developers
- All the power and tools provider by dots2k
- Powerful personalized editing with nvim2k
- Keyboard driven browsing support with qute2k
- Tiling window management with Aerospace
- More!!
git clone https://github.com/2kabhishek/mac2k
cd mac2k
./setup.sh
This will install all necessary packages, symlinks and setup symlinks for you.
To manually run steps from dots2k setup you can run https://github.com/2kabhishek/dots2k/tree/main/setup.sh
I also set up some keybindings manually, you can find them in the following docs.
Hint: Cmd = β/Command/Windows, Opt = β₯/Option/Alt, Ctrl = β/Control, fn = Function
- MacOS
- Raycast
- Aerospace
- Arc Browser
- Alacritty from dots2k
- Tmux from tmux-tilit
- Neovim from nvim2k
- Qutebrowser from qute2k
This also comes with a bunch of mac aliases in dots2k shell/aliases.sh to make your life easier.
aerr
,aert
,aerc
for aeropace reload config, toggle and editing configbri
,brr
,brc
,brs
,bru
to brew install, uninstall, cleanup, search, update respectivelymacdis
to disable mac's internal display, useful when using external display, needs restart to re-enable
For most tools I'm symlinking configs over from dots2k.
I use Alacritty as my default terminal now
Run iTerm and open "Preferences", Go to "Profiles" tab and click on "Other Actions" and then click on "Import JSON Profiles"
Select the ./configs/iterm/preofile.json file and import it.
You can also use the helper script to open iterm from terminal by symlinking it to your path and running iterm
.
I use Aerospace as my tiling window manager now
yabai
and skhd
together provide a tiling window management system for MacOS.
# Symlink yabai and skhd configs
ln -sfn "$PWD/config/.yabairc" "$HOME/"
ln -sfn "$PWD/config/.skhdrc" "$HOME/"
# Start yabai and skhd
yabai --start-service
skhd --start-service
# Add alias to restart yabai and skhd
alias macres="yabai --restart-service && skhd --restart-service"
I am a big fan of CLI and Tiling WMs, MacOS by default doesn't provide a good solution for those, so I decided to configure my own.
- Some hiccups with brew and services
- Learned and implemented recursive git submodules
β hit the star button if you found this useful β
Source | Blog | Twitter | LinkedIn | More Links | Other Projects