Skip to content

About

a minimal Mac shell environment config (zsh, antidote, Emacs, claude, tmux)

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

portable-environment

Portable minimal, opinionated dotfiles for Mac, managed with rcm.

What's included

Shell (zsh + antidote)

Antidote plugin manager, with a configuration approach based on zdotdir. Plugins are declared in a single .zsh_plugins.txt file and organized by category:

  • Completions — fzf-tab for fuzzy Tab completion, zsh-completions for extra definitions, ez-compinit for fast init
  • Editing — sensible keybindings (Home/End/Delete just work), emacs and vi mode support
  • History — shared across sessions, deduplication, substring search with Up/Down
  • Utilities — macOS helpers (cdf, flushdns), safe rm/mv/cp, extract for any archive, git aliases (gst, gco, gl, gp, etc.)
  • Fish-like features — syntax highlighting, autosuggestions (right-arrow to accept), history substring search

Prompt

Starship cross-shell prompt. Zsh starship prompt

Directory navigation

Zoxide — z to jump to frecent directories.

Editors

Spacemacs configuration. Shell aliases: et (terminal) and e (GUI Emacs.app).

Terminal multiplexer

tmux configuration.

Git

Aliases (via oh-my-zsh git plugin), global gitignore.

macOS

Emacs keybindings system-wide (Library/KeyBindings). macos-defaults.sh configures system preferences: standard function keys, fast key repeat, list-view Finder, tap-to-click, auto-hiding Dock, screen saver hot corner, and immediate lock-screen password.

disk-advisor (linked to ~/.local/bin) shows where disk space goes and suggests the five most effective cleanup actions with ready-to-run commands. At start it asks for your priorities: main goal (most space / safest / least effort), how far suggestions may go (regenerating caches → re-downloadable data → your own files), a target in GB, when something counts as unused, and which areas are off-limits. The scan runs while you answer. It covers app and package-manager caches, Homebrew, stale node_modules/target/venvs, Xcode and simulators, Docker/VMs, Ollama/LM Studio/Hugging Face models, unused apps, installers, old downloads, large files, iOS backups, media folders and deleted-user leftovers. It never deletes anything itself. Answers are remembered in ~/.local/state/disk-advisor/; disk-advisor --defaults skips the questions, and --help lists flags for scripting. For complete numbers, give your terminal Full Disk Access, since app sandboxes in ~/Library/Containers are otherwise unreadable.

Raycast

raycast/ holds Raycast script commands. It is not symlinked by rcm; to use them, add the folder in Raycast under Settings → Extensions → Script Commands → Add Directories, then give a command a hotkey in its settings.

  • connect-airpods.sh connects the first paired Bluetooth device whose name contains "AirPods" (set AIRPODS_ADDRESS to pin one). It turns Bluetooth on if needed and retries up to three times. Requires blueutil.

Homebrew packages

Brewfile tracks shell dependencies and daily-driver tools.

Claude Code

Custom settings and Starship integration via cship (claude/). cship starship pass-through

macOS notification hooks (claude/notify.sh) fire on Stop and PermissionRequest events: shows the tool name when approval is needed, detects whether the final assistant message is a question and notifies accordingly ("Question / decision needed" vs "Task complete"), and includes the tmux session/window as subtitle for context.

Setup

# Install rcm
brew install rcm

# Clone this repo
git clone <repo-url> ~/git/portable-environment

# Install Homebrew packages
brew bundle --file=~/git/portable-environment/Brewfile

# Link all dotfiles
rcup -d ~/git/portable-environment

# Apply macOS system preferences (keyboard, trackpad, Finder, Dock, etc.)
bash ~/git/portable-environment/macos-defaults.sh

For Claude Code config, remove any existing files before running rcup so rcm can place its symlinks:

rm -f ~/.claude/settings.json
rcup -d ~/git/portable-environment

Attribution

The zsh configuration approach is inspired by zdotdir.

About

a minimal Mac shell environment config (zsh, antidote, Emacs, claude, tmux)

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages