NeoVim with Tmux is our default development environment. This configuration is optimized for Elixir, Ruby, and JavaScript development.
setup.sh installs everything in the Brewfile, including these apps: 1Password, Android Studio, Docker Desktop, Google Chrome, iTerm, Postgres.app, and Slack.
Install these yourself:
Follow these steps to configure your development environment:
-
Install Xcode from the App Store (see Installations above).
-
Clone this repository and run the setup script:
git clone https://github.com/or-equals/dotfiles.git cd dotfiles ./setup.shOn a brand-new Mac,
git clonefirst asks to install Apple's Command Line Tools. Accept, wait for it to finish, then run the clone again.The setup script will:
- Install necessary tools (e.g., NeoVim, Tmux, asdf, plugins).
- Symlink configuration files to your home directory.
- Install Claude Code and grok, and clone the factory plugin into
~/projects/factory. - Keep going if a step fails, then list every failed step at the end.
It's safe to re-run: steps that are already done are skipped. Apps you installed yourself before running it are left alone, since macOS won't let Homebrew take them over without extra permission.
-
Create a localized Git configuration:
Create a file at
~/.gitconfig.localwith the following content:[github] user = YourGitHubUsername [user] email = your@email.com name = FirstName LastName
This step is required: the shared
.gitconfighas no name or email, so git won't commit until this file exists. Setup reminds you if it's missing. You can add other Git settings here too. -
Follow the list at the end of setup.
Setup installs your Vim plugins itself, then lists only what's left for you: creating
~/.gitconfig.localif git doesn't know who you are yet, copying your SSH keys, and signing in to GitHub, Heroku, Claude Code, and grok.
Below is an overview of many of the aliases, custom functions, and helpful features that come from these dotfiles. Think of this as a quick reference for the “goodies” provided, grouped by context.
Rails & Ruby
ss– Runs the Rails server (bundle exec rails server).sc– Rails console (bundle exec rails console).be– Shortcut forbundle exec.rdb– Drops, creates, migrates, and seeds the database (bin/rails db:drop db:create db:migrate && bin/rails db:seed).zdb– Same asrdbbut also runsafter_party:runif your app uses that.groutes your_route– Searches for a route by name withinrails routes | grep.twiki– Callsdb:migrate, followed bydb:migrate:redoanddb:test:preparein Rails (handy for quick DB resets).
Phoenix & Elixir
im– Starts an IEx session with mix (iex -S mix).pss– Starts the Phoenix server (mix phx.server).ho– Lists outdated dependencies for your Elixir project (mix hex.outdated).proutes your_route– Searches for a route by name (mix phx.routes | grep).
Filesystem / Navigation
../cd..– Go up a directory.l–ls -F -G -lah(detailed list with colors).la–ls -a(show hidden files).ll–ls -l(long list).md–mkdir -p(create intermediate directories automatically).cdep– Remove Elixir + Node build artifacts (rm -rf deps _build assets/node_modules).rdep– Clearsdeps,_build,assets/node_modules, then runsmix deps.get, and re-installs Node dependencies.
Git
gap–git add -p(interactive add).gb–git branch.gc–git commit -v.gco–git checkout.gd–git diff.gdc–git diff --cached.gdh–git diff HEAD.gl–git pull.gp–git push.gpr–git pull --rebase.gr–git rebase.gra–git rebase --abort.grc–git rebase --continue.gst–git status.gnap– Marks new files as “intent to add”, then runsgit add -p, so you can stage new files hunk by hunk too.glg– Graphical log (git log --graph --oneline --decorate --color --all).prunemerged– Deletes local branches already merged into your current branch (keepsmasteranddev).
Docker
dcu–docker compose up.dcud–docker compose up -d(detached).dcd–docker compose down.dcs–docker compose stop.dcp–docker compose ps.dcl–docker compose logs -f.dcr–docker compose run.dce–docker compose exec.
Zsh Other Goodies
rl– Reloads Zsh config by sourcing~/.zshrc.cat– Actually callsbat, for a colorizedcatreplacement.fd– fd installed as an alternative tofind.cf– Starts Claude Code with the factory plugin from~/projects/factory.- The environment sets a few paths for asdf, cargo (Rust), etc.
And much more—just check out the .zshrc for details!
-
fzf.vim – Fuzzy finder integration.
:Files– Opens an fzf-based file finder.:Rg– Searches withripgrep, displayed in an fzf preview window.:Find– Searches for the word under cursor in the project usingripgrep.
-
vim-plug – Plugin manager.
setup.shinstalls plugins; run:PlugInstallafter adding new ones. -
vim-rails, vim-bundler, vim-rake – Powerful Ruby & Rails enhancements.
-
vim-elixir – Elixir syntax & indentation.
-
maxbrunsfeld/vim-yankstack – Keeps a stack of past yanks, so you can cycle them.
- Use
⌥+P(option+P) orshift+option+Pto cycle.
- Use
-
rainbow_csv – Nice CSV highlighting.
-
vim-rubocop – RuboCop integration for Ruby code.
-
Leader key is the default
\(backslash). Space is disabled in normal and visual mode. -
<leader>t=– Align on=. -
<leader>w– Writes the file (:w). -
<leader>q– Quits and closes everything (:wqa). -
<leader>u– Toggles Gundo (undo tree visual). -
//– Clears search highlights. -
gsv– Reloads.vimrcon the fly (:so ~/.vimrc). -
gev– Edits the.vimrcin a new buffer (:e ~/.vimrc). -
<Tab>/<S-Tab>– Indentation-based shifts in normal/visual modes. -
Y– Now copies from cursor to the end of line (likeCorD). -
FZF:
<leader>p–:Files(fuzzy file search).RG something– search entire project for "something."
-
Pressing
CRin normal mode – Toggles highlight search off (:noh). -
Auto-close pairs for do/end vs. curly braces, etc. (via vim-endwise).
And many more convenience or alignment commands (see .vimrc comments for specific details).
- Prefix Key – Changed to Ctrl+z (instead of the default
Ctrl+b). - Copy/Paste – Integrates with macOS clipboard.
<prefix> + C-c– Copies tmux selection to macOS clipboard.<prefix> + C-v– Pastes from macOS clipboard into tmux.
- Resize / Zoom:
- Up Arrow – Temporarily zoom a pane (
resize-pane -Z). - Down Arrow – Same as above.
- Up Arrow – Temporarily zoom a pane (
- Window management:
<prefix> + |– Split window side by side.<prefix> + h/j/k/l– Move around panes.
- Scrolling
- Mouse mode is on. Scroll with mouse wheel to go into copy-mode automatically.
- History – The scrollback buffer is extended to 100000 lines.
- asdf is installed and configured for multiple languages (Elixir, Erlang, Flutter, Node.js, Python, Ruby, Rust, Postgres).
- Postgres.app is installed from the
Brewfileand runs the local database server; itspsql,pg_dump, and friends are on yourPATH. - starship prompt is enabled in
.zshrc, giving a minimal, fast, configurable prompt. brew bundleinsetup.shautomatically installs all the formulae from theBrewfile.nvimis the main editor;vimandviare aliased tonvim.- Ripgrep (
rg) is used by default for searching within projects; integrated into Vim withfzf. - Bat (
bat) is used for colorfulcatreplacements. - Zsh Syntax Highlighting, Zsh Autosuggestions are both loaded for a more user-friendly shell.
Setup links these into ~/bin, which is on your PATH.
mux [project]– Creates or reattaches to a tmux session named after the project, withcode,server, andagentwindows. With no argument it uses the current directory; with a name it uses~/projects/<name>.restore-db-backup [backup_id | file.dump]– Restores a Postgres dump into the current Rails project's database, reading connection details fromconfig/database.yml.qunit-test-hash– Prints the QUnit test ID hash for a module and test name, for running a single Ember test.
-
Install Vim Plugins:
setup.shinstalls all the plugins from.vimrc. Run:PlugInstallinnvimafter adding new ones.
-
setup.shdoes a lot:- Installs Homebrew (if not installed).
- Installs all brew formulae & casks from the
Brewfile. - Symlinks these dotfiles into
~/.and ensures asdf is installed and updated. - Installs Claude Code, grok, and the factory plugin.
-
Local Overrides:
- If you have local changes or environment-specific settings, place them in
~/.zshrc.local(loaded at the bottom of.zshrc).
- If you have local changes or environment-specific settings, place them in
That’s it! Enjoy your streamlined environment for Ruby, Elixir, JavaScript, and more. If you get stuck, comb through .zshrc or .vimrc to see additional details and function definitions.