Skip to content

magic3007/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

415 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

dotfiles

My personal dotfiles β€” meticulously curated configurations for the ultimate terminal-centric development environment. Managed by Dotbot with a two-phase installer that works across Linux and macOS.

zsh Β· bash Β· fish Β |Β  Linux Β· macOS Β |Β  tmux Β· neovim Β· Claude Code

One-Click Install

bash <(curl -fsSL https://raw.githubusercontent.com/magic3007/dotfiles/master/bootstrap.sh)

Bootstraps everything: SSH keys β†’ Claude Code β†’ repo clone β†’ ./install β†’ git config β†’ wechat-reminder. All API keys and env vars land in ~/.common_shell_setup_local.sh (never committed).

Manual install
git clone --recursive https://github.com/magic3007/dotfiles.git ~/dotfiles
cd ~/dotfiles
./install          # idempotent β€” safe to re-run
./install -n       # dry run

What's Configured

Shell & Prompt

Tool Config
zsh oh-my-zsh + autosuggestions + syntax-highlighting + vi-mode + autojump + wakatime
bash shared aliases, functions, and env vars via common_shell_setup.sh
fish Fisher plugins, lazy-loaded functions, modular conf.d structure
starship Cross-shell prompt with custom styling

Terminal & Multiplexer

Tool Config
tmux Status bar, keybindings, mouse support
cmux Session/tab/panel JSON config
Warp Modern terminal settings
iTerm2 macOS β€” plist sync, custom profile
Ghostty Cross-platform GPU terminal
zellij (installed via Homebrew/apt)

Editor & IDE

Tool Config
neovim NvChad (full IDE) + nvim-basic-ide (lightweight), LSP, treesitter
vim vimrc with plugin management, undo history, extensive settings
VSCode Settings sync via vscoderc
ideavim JetBrains Vim emulation
Cursor macOS β€” keybindings + settings
Antigravity macOS β€” keybindings + settings

Git

Tool Config
gitconfig Aliases (st/co/di/dc/gr…), fast-forward-only pull, custom hooks path
lazygit (installed via Homebrew/apt)

File Management

Tool Config
ranger Plugins, rifle, custom commands, scope.sh
joshuto Rust file manager β€” keymap, mimetype, theme
yazi Rust file manager β€” keymap, theme
lsd Modern ls replacement

AI Coding Tools

Tool Config
Claude Code Settings, hooks, skills, agents, commands, rules, API wrappers for 6+ backends
Codex OpenAI Codex config, env, skills
Gemini CLI Settings, skills
Opencode Config, package.json
Pi Models + settings
Kimi Code config.toml
ChatGPT Shell helper

Shell Aliases

cc        # Claude Code β€” native Anthropic API
sdcc      # Claude Code β€” VolcEngine (doubao-seed-2.0-lite)
dscc      # Claude Code β€” DeepSeek (v4-flash)
dsccpro   # Claude Code β€” DeepSeek (v4-pro)
kmcc      # Claude Code β€” Kimi via OpenRouter
kmcc2     # Claude Code β€” Kimi direct
mxcc      # Claude Code β€” MiniMax via OpenRouter
mmcc      # Claude Code β€” MiMo
gm        # Google Gemini CLI
oc        # Opencode

macOS Window Management

Tool Config
Karabiner Keyboard remapping, complex modifications, assets
skhd Hotkey daemon
yabai Tiling window manager

Language & Package Managers

Tool Config
cargo rsproxy.cn mirror
pip TUNA mirror (tsinghua)
conda / mamba TUNA mirror
npm npmmirror.com
R .Rprofile

Debugging & Profiling

Tool Config
gdb Dashboard, reverse engineering helpers, STL pretty-printers

Containers

Tool Config
Docker Dockerfiles for CUDA/PyTorch/Ubuntu dev environments, GUI setup guide

CLI Enhancements

Tool Config
bat bat β€” syntax-highlighted cat
fzf Fuzzy finder
yolo ~/.local/bin/yolo β€” generic LLM-powered shell helper script

Productivity & Knowledge

Tool Config
Obsidian Plugins, appearance, core plugin settings
wechat-reminder Dual-channel (WeChat PushDeer + Feishu webhook), Claude Code hook integration

Local Customization

Machine-specific overrides β€” gitignored:

File Purpose
~/.gitconfig_local Git user name/email
~/.zsh_local Zsh overrides
~/.bash_local Bash overrides
~/.common_shell_setup_local.sh API keys, webhook URLs, env vars
~/.config/fish/conf.d/local.fish Fish overrides

Architecture

dotfiles/
β”œβ”€β”€ claude/          β†’ ~/.claude/         Claude Code (hooks, skills, agents, settings)
β”œβ”€β”€ codex/           β†’ ~/.codex/          OpenAI Codex
β”œβ”€β”€ gemini/          β†’ ~/.gemini/         Google Gemini CLI
β”œβ”€β”€ opencode/        β†’ ~/.config/opencode/ Opencode
β”œβ”€β”€ pi/              β†’ ~/.pi/agent/       Pi coding agent
β”œβ”€β”€ kimi-code/       β†’ ~/.kimi-code/      Kimi Code
β”œβ”€β”€ neovim/          β†’ ~/.config/nvim/    NvChad + basic-ide
β”œβ”€β”€ vim/             β†’ ~/.vim_runtime/    Vim config + plugins
β”œβ”€β”€ git/             β†’ ~/.gitconfig       Git aliases + hooks
β”œβ”€β”€ starship/        β†’ ~/.config/starship.toml
β”œβ”€β”€ fish/            β†’ ~/.config/fish/    Fish shell
β”œβ”€β”€ ranger/          β†’ ~/.config/ranger/  Ranger file manager
β”œβ”€β”€ joshuto/         β†’ ~/.config/joshuto/ Joshuto file manager
β”œβ”€β”€ yazi/            β†’ ~/.config/yazi/    Yazi file manager
β”œβ”€β”€ lsd/             β†’ ~/.config/lsd/     LSD config
β”œβ”€β”€ bat/             β†’ ~/.config/bat/     Bat config
β”œβ”€β”€ gdb/             β†’ ~/.gdbinit + ~/.gdb/
β”œβ”€β”€ ghostty/         β†’ ~/.config/ghostty/
β”œβ”€β”€ karabiner/       β†’ ~/.config/karabiner/   (macOS)
β”œβ”€β”€ skhd/            β†’ ~/.skhdrc + ~/.skhd/   (macOS)
β”œβ”€β”€ cursor_config/   β†’ Cursor settings        (macOS)
β”œβ”€β”€ antigravity_config/ β†’ Antigravity settings (macOS)
β”œβ”€β”€ iterm2/          β†’ iTerm2 plist          (macOS)
β”œβ”€β”€ obsidian/        β†’ Obsidian vault settings
β”œβ”€β”€ docker/          β†’ Dev Dockerfiles
β”œβ”€β”€ install-scripts/ β†’ Platform package installers
└── wechat-reminder/ β†’ Dual-channel notification tool

Reference

  • Dotbot β€” dotfile management
  • CLAUDE.md β€” full development guide and constraints

About

πŸ€— A collection of docker, gdb, git, vim, neovim, zsh, ranger, conda, and tmux configuration files and setup script under various OS.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages