{"id":26895210,"url":"https://github.com/thenameiswiiwin/dev-env","last_synced_at":"2026-04-09T06:42:39.217Z","repository":{"id":285230995,"uuid":"952674158","full_name":"thenameiswiiwin/dev-env","owner":"thenameiswiiwin","description":"A comprehensive, modular development environment setup system for macOS and Linux that automates the installation and configuration of programming tools, shells, editors, and dotfiles with support for Docker-based cross-distribution testing.","archived":false,"fork":false,"pushed_at":"2025-04-07T19:35:34.000Z","size":6911,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T20:28:29.702Z","etag":null,"topics":["automation","bash-script","cross-platform","development-environment","devops","docker","dotfiles","ghostty","golang","linux","macos","neovim","nodejs","rust","shell-script","tmux","zsh"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thenameiswiiwin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-21T17:18:59.000Z","updated_at":"2025-04-07T19:35:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ffa4872-4213-46f5-b72d-50922cd11f0c","html_url":"https://github.com/thenameiswiiwin/dev-env","commit_stats":null,"previous_names":["thenameiswiiwin/dev-env"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/thenameiswiiwin/dev-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenameiswiiwin%2Fdev-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenameiswiiwin%2Fdev-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenameiswiiwin%2Fdev-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenameiswiiwin%2Fdev-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenameiswiiwin","download_url":"https://codeload.github.com/thenameiswiiwin/dev-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenameiswiiwin%2Fdev-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28131082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash-script","cross-platform","development-environment","devops","docker","dotfiles","ghostty","golang","linux","macos","neovim","nodejs","rust","shell-script","tmux","zsh"],"created_at":"2025-04-01T01:54:41.388Z","updated_at":"2025-12-30T19:03:12.549Z","avatar_url":"https://github.com/thenameiswiiwin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cross-Platform Development Environment Setup\n\nA comprehensive set of scripts and configurations to automate the setup and maintenance of a consistent, powerful development environment across macOS (Intel/Apple Silicon) and major Linux distributions.\n\n## 🚀 Features\n\n- **Universal Compatibility**: Works seamlessly on macOS (Intel and Apple Silicon) and Linux (Ubuntu, Debian, Kali, Arch, Alpine)\n- **Homebrew-first Approach**: Utilizes Homebrew as the primary package manager with intelligent fallbacks\n- **Modular Design**: Individual installation scripts with clean separation of concerns\n- **Smart Installation**: Idempotent execution allows scripts to be run repeatedly without issues\n- **Dry Run Support**: Preview changes without applying them using the `--dry` flag\n- **Intelligent Error Handling**: Detailed error messages with automatic fallback mechanisms\n- **Automatic Backups**: Creates backups of existing configurations before modifications\n- **Detailed Logging**: Color-coded status indicators for clear progress tracking\n- **Shell Integration**: Seamless integration with Zsh, including Oh My Zsh and plugins\n- **Tool Configuration**: Pre-configured development tools including Neovim, tmux, Git, Docker, and more\n- **Project Workflow**: Integrated project management, database operations, and Git workflow tools\n\n## 📋 Component Overview\n\n### Core Tools\n\n- **Neovim**: Modern, extensible code editor with LSP support and custom plugins\n- **tmux**: Terminal multiplexer with productivity-focused configuration\n- **Zsh**: Shell with Oh My Zsh, auto-suggestions, and syntax highlighting\n- **Git**: Version control with enhanced configuration and workflow tools\n- **Docker**: Container platform with helper scripts and multi-distribution environments\n- **Window Management**: Rectangle (macOS) or i3 (Linux) for efficient window control\n\n### Programming Languages\n\n- **Node.js**: JavaScript/TypeScript development environment with npm/pnpm\n- **Python**: Python development with virtual environments and common tools\n- **Rust**: Rust language and Cargo package manager\n- **Go**: Go language environment with tools and configuration\n- **PHP**: PHP with Composer and Laravel support\n\n### Productivity Tools\n\n- **tmux-sessionizer**: Intelligent tmux session management\n- **Docker Development Environments**: Cross-distribution testing environments\n- **Project Management**: Scripts for project creation and navigation\n\n## 🛠️ Installation\n\n### Prerequisites\n\n- Bash 4.0+ (pre-installed on macOS and most Linux distributions)\n- Git (will be installed if not present)\n- Internet connection for downloading packages and tools\n\n### Quick Setup\n\nTo bootstrap a new system, run:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/thenameiswiiwin/dev-env/main/setup | bash\n```\n\nOr clone the repository and run the setup script:\n\n```bash\ngit clone https://github.com/thenameiswiiwin/dev-env.git $HOME/dev\ncd $HOME/dev\n./setup\n```\n\n### Dry Run Mode\n\nTo preview changes without applying them, use the `--dry` flag:\n\n```bash\n./setup --dry\n```\n\n## 📂 Directory Structure\n\n```\ndev/\n├── .github/workflows    # GitHub Actions for CI\n├── dev-env              # Environment configuration script\n├── diagnose             # Diagnostic tool for troubleshooting\n├── env/                 # Environment configuration files\n│   ├── .config/         # App-specific configurations\n│   │   ├── ghostty/     # Ghostty terminal configuration\n│   │   ├── i3/          # i3 window manager configuration\n│   │   ├── nvim/        # Neovim editor configuration (submodule)\n│   │   ├── personal/    # Personal configuration overrides\n│   │   ├── rectangle/   # Rectangle window manager configuration\n│   │   └── tmux/        # tmux configuration\n│   ├── .local/          # Local binaries and scripts\n│   │   ├── bin/         # Executable scripts\n│   │   └── scripts/     # Utility scripts\n│   └── ...              # Shell configuration files\n├── init                 # Git submodule initialization script\n├── run                  # Main execution script for run scripts\n├── runs/                # Individual installation scripts\n│   ├── dev              # Development tools\n│   ├── docker           # Docker and container tools\n│   ├── ghostty          # Ghostty terminal\n│   ├── go               # Go language\n│   ├── libs             # Core utility libraries\n│   ├── neovim           # Neovim editor\n│   ├── node             # Node.js and related tools\n│   ├── php              # PHP and Composer\n│   ├── python           # Python and pip\n│   ├── rust             # Rust and cargo\n│   ├── tmux             # Tmux terminal multiplexer\n│   ├── window-manager   # OS-specific window managers\n│   └── zsh              # Zsh shell configuration\n├── setup                # Initial bootstrap script\n├── tmux-sessionizer/    # Tmux session management tool (submodule)\n├── update               # Environment update script\n└── utilities            # Core utility functions\n```\n\n## 📝 Usage\n\n### Installing Specific Tools\n\nTo install specific tools, use the `run` script:\n\n```bash\n./run [tool_name]\n```\n\nFor example, to install Neovim:\n\n```bash\n./run neovim\n```\n\n### Updating the Environment\n\nTo update all installed tools:\n\n```bash\n./update\n```\n\n### Troubleshooting\n\nIf you encounter problems, run the diagnostic tool:\n\n```bash\n./diagnose\n```\n\n## 🔧 Core Components in Detail\n\n### Utility Scripts\n\nThe `utilities` script provides core functions used throughout the environment:\n\n- Color-coded logging\n- Command existence checking\n- Package installation with fallbacks\n- File backup functionality\n- Execution with dry-run support\n\n### Runner System\n\nThe `run` script manages the execution of individual installation scripts:\n\n- Executes scripts in the `runs/` directory\n- Supports filtering by name\n- Provides dry-run mode\n- Handles errors and dependencies\n\n### Environment Configuration\n\nThe `dev-env` script manages symbolic links and configuration files:\n\n- Links configuration files from repository to system\n- Manages dotfiles and application configs\n- Creates necessary directories\n- Backs up existing configurations\n\n## 🛠️ Tool-Specific Features\n\n### Neovim Configuration\n\n- LSP integration for multiple languages\n- Treesitter for advanced syntax highlighting\n- Telescope for fuzzy finding\n- Custom keybindings and plugins\n- Git integration\n- Testing framework\n\n### tmux Setup\n\n- Custom key bindings for productivity\n- Status line configuration\n- Mouse support\n- Plugin management\n- Session management via tmux-sessionizer\n\n### Zsh Configuration\n\n- Oh My Zsh integration\n- Syntax highlighting\n- Auto-suggestions\n- Completion improvements\n- Custom aliases and functions\n\n### Docker Development Environments\n\nThe repository includes a complete Docker-based development environment:\n\n- Multiple Linux distributions (Ubuntu, Debian, Alpine, Arch, Kali)\n- Shared configuration across environments\n- Development tools pre-installed\n- Docker Compose for orchestration\n\n## 📱 macOS-Specific Features\n\n- Rectangle window management\n- Homebrew optimization\n- macOS system settings\n- Ghostty terminal configuration\n- Dock customization\n\n## 🐧 Linux-Specific Features\n\n- i3 window manager configuration\n- X11 settings\n- Rofi application launcher\n- Polybar status bar\n- Display management\n\n## 🔄 Git Workflow\n\nThe repository includes tools for Git workflow optimization:\n\n- Feature branching\n- Hotfix management\n- Release workflow\n- Branch cleanup\n- GitHub integration\n\n## 🧠 Intelligent Project Management\n\nThe `project` script provides tools for project management:\n\n- Project creation from templates\n- Directory organization\n- Project type detection\n- Quick navigation\n- Development environment setup\n\n## 🔄 tmux-sessionizer\n\nA powerful tmux session manager with features like:\n\n- Intelligent project detection\n- Smart session switching\n- Custom session templating\n- Fuzzy directory finding\n- Project-specific layouts\n\n## 📄 Configuration Customization\n\n### Personal Configuration\n\nYou can customize the environment by:\n\n1. Editing configuration files in the `env/` directory\n2. Creating your own scripts in the `runs/` directory\n3. Adding personal configurations to `$HOME/personal`\n4. Using `*.local` files for machine-specific settings\n\n### Machine-Specific Configuration\n\nFor machine-specific overrides:\n\n1. Create a `.local` version of any configuration file\n2. Place custom configurations in `$HOME/personal`\n3. Use the `personal/` directory within `.config`\n\n## 📊 Compatibility\n\n| OS             | Architecture  | Status           |\n| -------------- | ------------- | ---------------- |\n| macOS Ventura+ | Apple Silicon | ✅ Full support  |\n| macOS Ventura+ | Intel         | ✅ Full support  |\n| Ubuntu 22.04+  | x86_64/ARM64  | ✅ Full support  |\n| Debian 11+     | x86_64/ARM64  | ✅ Full support  |\n| Arch Linux     | x86_64        | ✅ Full support  |\n| Alpine Linux   | x86_64        | ✅ Basic support |\n| Kali Linux     | x86_64        | ✅ Basic support |\n\n## 💻 Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/new-tool`)\n3. Make your changes\n4. Test with `./run --dry [tool_name]`\n5. Commit your changes (`git commit -am 'Add new tool'`)\n6. Push to the branch (`git push origin feature/new-tool`)\n7. Create a new Pull Request\n\n## 🙏 Acknowledgements\n\nThis project is inspired by and borrows concepts from:\n\n- [ThePrimeagen](https://github.com/ThePrimeagen) - For pioneering developer workflow, tmux-sessionizer concept.\n\n## 📝 License\n\nCopyright (c) 2025 Huy Nguyen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenameiswiiwin%2Fdev-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenameiswiiwin%2Fdev-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenameiswiiwin%2Fdev-env/lists"}