Skip to content

hu3mann/dDd-dev-env

Repository files navigation

dDd-dev-env: Eye-Candy Dev Container with aharoJ Starship Theme

This is a modern Docker development container featuring:

  • Zsh + Oh My Zsh, autosuggestions, syntax highlighting, and fzf fuzzy search
  • Starship prompt themed and modularized (using aharoJ’s high-contrast config)
  • WordPress CLI + AI plugins pre-installed
  • Auto-cloning of your private dotfiles if not mounted
  • GitHub Actions compatible

✨ Prompt Features (aharoJ Eye Candy)

This dev environment uses Starship with imported module configs for maximum visual clarity:

Module What it does
Directory Shows pretty, icon-enhanced working directory
Git Vivid branch/status display, ahead/behind, icons
Languages Detects & shows Node, Python, PHP, etc. version info
Battery Status shown (for laptops)
Time Clock in prompt
Cmd Time each command took to run
Name Shows username/host info

Prompt modules are managed via modular TOML configs in /scripts/active/ and /scripts/non-active/, then imported in starship.toml using the Starship import system.

Example prompt

(See /z/ for more screenshots, if desired.)

🐳 Quick Start

  1. Clone this repo:

    git clone https://github.com/yourname/dDd-dev-env.git
    cd dDd-dev-env
  2. Copy your private dotfiles repo to /dDd-Dev/.dotfiles on your machine
    (Or let the container clone it for you on first run.)

  3. Build and run:

    docker build -t ddd-dev .
    # pass your host path as an argument or set DEV_DATA_PATH
    ./run-dev-env.sh /path/to/drive

    If /dDd-Dev/.dotfiles is missing, the container will auto-clone from your private repo.

⚙️ Enabling/Disabling Prompt Modules

Inside the container, Zsh will:

  • Source $DEV_DATA_PATH/.dotfiles/.zshrc
  • Initialize Starship prompt
  • Load Oh My Zsh with zsh-autosuggestions & zsh-syntax-highlighting
  • Provide helpful aliases (lsexa --icons, ll, la, l) and sets EDITOR=nano
  • To add or remove features, edit starship.toml and modify the import array:
    import = [
      "scripts/active/directory.toml",
      "scripts/active/git.toml",
      "scripts/active/languages.toml",
      "scripts/non-active/time.toml",        # comment this to hide the clock
      "scripts/non-active/battery.toml",     # comment this if not on a laptop
      "scripts/non-active/cmd.toml",
      "scripts/non-active/name.toml"
    ]
  • Or directly edit the individual *.toml files for custom tweaks.

📝 Customization

Included CLI tools

The image comes with handy utilities like ripgrep, fzf, bat, exa, htop, and tmux preinstalled.

Building & Publishing the Image (GHCR)

🛠️ WordPress AI Plugins

  • Preinstalled with WP-CLI and the following AI/static plugins: AI Engine, Jetpack AI, Rank Math AI, Bertha AI, 10Web AI, WP2Static, Simply Static Pro.
  • See Dockerfile for install commands and upgrade instructions.

🚀 Screenshots

Screenshots of the prompt and its modules are in /z/ if you add them.

Open this repo in a new Codespace or VS Code Remote-Container. The devcontainer will:

  1. Mount a persistent volume at /dDd-Dev
  2. On first startup, clone your data repo into /dDd-Dev if the volume is empty. This uses [ "$(ls -A /dDd-Dev 2>/dev/null)" ] || git clone $DEV_DATA_REPO_URL /dDd-Dev.

Attribution


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors