Home

Awesome

<div align = "center"> <h1><a href="https://github.com/2kabhishek/mac2k">mac2k</a></h1> <a href="https://github.com/2KAbhishek/mac2k/blob/main/LICENSE"> <img alt="License" src="https://img.shields.io/github/license/2kabhishek/mac2k?style=flat&color=eee&label="> </a> <a href="https://github.com/2KAbhishek/mac2k/graphs/contributors"> <img alt="People" src="https://img.shields.io/github/contributors/2kabhishek/mac2k?style=flat&color=ffaaf2&label=People"> </a> <a href="https://github.com/2KAbhishek/mac2k/stargazers"> <img alt="Stars" src="https://img.shields.io/github/stars/2kabhishek/mac2k?style=flat&color=98c379&label=Stars"></a> <a href="https://github.com/2KAbhishek/mac2k/network/members"> <img alt="Forks" src="https://img.shields.io/github/forks/2kabhishek/mac2k?style=flat&color=66a8e0&label=Forks"> </a> <a href="https://github.com/2KAbhishek/mac2k/watchers"> <img alt="Watches" src="https://img.shields.io/github/watchers/2kabhishek/mac2k?style=flat&color=f5d08b&label=Watches"> </a> <a href="https://github.com/2KAbhishek/mac2k/pulse"> <img alt="Last Updated" src="https://img.shields.io/github/last-commit/2kabhishek/mac2k?style=flat&color=e06c75&label="> </a> <h3>Ultimate Dev Setup for Mac OS 🚀🍎</h3> <figure> <img src="images/screenshot.jpg" alt="mac2k in action"> <br/> <figcaption>mac2k in action</figcaption> </figure> </div>

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.

✨ Features

Setup

🚀 Installation

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

💻 Usage

Keybindings

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

Aliases

This also comes with a bunch of mac aliases in dots2k shell/aliases.sh to make your life easier.

Other Configs

For most tools I'm symlinking configs over from dots2k.

Setting up iTerm

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.

Tiling Window Management

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"

Behind The Code

🌈 Inspiration

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.

💡 Challenges/Learnings

🧰 Tooling

<hr> <div align="center">

<strong>⭐ hit the star button if you found this useful ⭐</strong><br>

<a href="https://github.com/2KAbhishek/mac2k">Source</a> | <a href="https://2kabhishek.github.io/blog" target="_blank">Blog </a> | <a href="https://twitter.com/2kabhishek" target="_blank">Twitter </a> | <a href="https://linkedin.com/in/2kabhishek" target="_blank">LinkedIn </a> | <a href="https://2kabhishek.github.io/links" target="_blank">More Links </a> | <a href="https://2kabhishek.github.io/projects" target="_blank">Other Projects </a>

</div>