My dotfiles and dev environment setup, kept synced across Linux (Debian / Ubuntu) and macOS.
.
├── ghostty/
│ └── config # Shared Ghostty terminal config
├── linux/
│ ├── .zshrc # Zsh config (Zinit + Starship + Zoxide + Fzf)
│ └── packages.txt # Debian / Ubuntu apt package list
├── macos/
│ ├── .zshrc # Zsh config (synced with linux/.zshrc)
│ ├── .zprofile # Homebrew & OrbStack login shell environment
│ ├── Brewfile # Homebrew formulae & casks
│ └── defaults.sh # macOS system preferences
├── vscode/
│ ├── README.md # VSCode setup instructions
│ ├── extensions.txt # VSCode extensions list
│ └── settings.json # VSCode user settings
├── .gitconfig # Shared Git configuration
└── install.sh # Cross-platform symlink installer (Linux & macOS)
Targeted at Debian / Ubuntu (apt) with universal installers for tools that ship newer versions upstream.
Install base packages from linux/packages.txt:
sudo apt update && sudo apt upgrade -y
grep -vE '^\s*(#|$)' linux/packages.txt | xargs sudo apt install -yInstall tools not packaged (or older) in default apt repos:
# Starship prompt
curl -sS https://starship.rs/install.sh | sh
# Bun
curl -fsSL https://bun.sh/install | bash
# Rust / Cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# uv (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh
# eza (modern ls) & yt-dlp (via cargo / pipx)
cargo install eza
pipx install yt-dlpNote: On older Debian/Ubuntu releases,
apt'sfzfmay be older than0.48(beforefzf --zshwas added).linux/.zshrcautomatically falls back to/usr/share/doc/fzf/examples/key-bindings.zsh, or you can install the latestfzffrom GitHub releases.
Uses Zsh with Zinit, Starship, Zoxide, and Fzf (no separate Oh My Zsh install needed — Zinit pulls only the OMZ snippets used) — synced with the macOS setup.
- Set Zsh as the default shell:
chsh -s "$(which zsh)" - Symlink configs with
install.sh(backs up any existing files automatically):./install.sh # Or also install VSCode extensions: ./install.sh --vscode - Reload Zsh (Zinit automatically bootstraps itself and installs plugins on first launch):
exec zsh
Included Zinit plugins & snippets:
zsh-users/zsh-completionsAloxaf/fzf-tabzsh-users/zsh-autosuggestionszsh-users/zsh-syntax-highlightingzsh-users/zsh-history-substring-searchOMZL::git.zsh,OMZP::git,OMZP::sudo,OMZP::command-not-found
Install Nerd Fonts (Hack and SpaceMono):
mkdir -p ~/.local/share/fonts
# Download Hack and SpaceMono from https://www.nerdfonts.com/font-downloads, unzip into ~/.local/share/fonts, then:
fc-cache -fvApplications
Browser Extensions
- AdGuard
- Bitwarden
- DarkReader
- Base64 Decoder
- Decentraleyes
- Google Analytics Opt-Out
- I still don't care about cookies
- uBlock Origin Lite
- Don't Track Me Google
- Enhancer for YouTube
- Humble New Tab Page
- Modern for Wikipedia
- Return YouTube Dislike
- SponsorBlock
# Git config
ln -sf "$PWD/.gitconfig" ~/.gitconfig
# VSCode extensions & settings
cat vscode/extensions.txt | xargs -L1 code --install-extension
mkdir -p ~/.config/Code/User
cp vscode/settings.json ~/.config/Code/User/settings.jsonManaged with Homebrew (macos/Brewfile) and kept synced with the Linux setup.
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install all CLI tools, fonts, and apps from
macos/Brewfile:brew bundle --file=macos/Brewfile
- Install Bun (managed outside Homebrew to match
~/.zshrc):curl -fsSL https://bun.sh/install | bash
Uses Ghostty + Zsh with Zinit, Starship, Zoxide, and Fzf (no separate Oh My Zsh install needed — Zinit pulls only the OMZ snippets used) — synced with the Linux setup.
- Symlink configs with
install.sh(backs up any existing files automatically):./install.sh # Or also apply macOS defaults and install VSCode extensions: ./install.sh --defaults --vscode - Reload Zsh (Zinit automatically bootstraps itself and installs plugins on first launch):
exec zsh
Included Zinit plugins & snippets:
zsh-users/zsh-completionsAloxaf/fzf-tabzsh-users/zsh-autosuggestionszsh-users/zsh-syntax-highlightingzsh-users/zsh-history-substring-searchOMZL::git.zsh,OMZP::git,OMZP::sudo,OMZP::command-not-found
Apply your saved macOS preferences (Dark Mode, Dock auto-hide & hover delay, Finder list view / path bar / status bar / folders first, tap-to-click, non-natural scrolling, no .DS_Store on network/USB volumes):
./macos/defaults.shfont-hack-nerd-font is installed automatically via macos/Brewfile (used by Ghostty and VSCode). You can also install SpaceMono Nerd Font:
brew install --cask font-space-mono-nerd-fontApplications
- Google Chrome / Brave / Safari
Browser Extensions
- AdGuard
- Bitwarden
- DarkReader
- Base64 Decoder
- Decentraleyes
- Google Analytics Opt-Out
- I still don't care about cookies
- uBlock Origin Lite
- Don't Track Me Google
- Enhancer for YouTube
- Humble New Tab Page
- Modern for Wikipedia
- Return YouTube Dislike
- SponsorBlock
# Git config
ln -sf "$PWD/.gitconfig" ~/.gitconfig
# VSCode extensions & settings
cat vscode/extensions.txt | xargs -L1 code --install-extension
mkdir -p "$HOME/Library/Application Support/Code/User"
cp vscode/settings.json "$HOME/Library/Application Support/Code/User/settings.json"