# gooygeek/dotfiles architecture

> Architecture diagram of the GitHub repository gooygeek/dotfiles, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gooygeek/dotfiles
- Repository: https://github.com/gooygeek/dotfiles

## Overview

##### Main Components

a. Configuration Categories (Primary Components):
- Shell Environments (Zsh, Bash)
- Terminal Emulators (Alacritty, Kitty, Ghostty)
- Development Tools (Vim, VSCode, Git)
- System Utilities (GPG, TMux, Zellij)
- Package Management
- Security Components (Password Store)

b. Setup Scripts:
- Machine Setup Scripts (Mac, Ubuntu, DevContainer)
- Installation and Configuration Scripts

**Level 1 (Core):**
- Installation & Setup Layer
**Level 2 (Configuration):**
- Shell Environment → Terminal Emulators → Development Tools → System Utilities
**Level 3 (Extensions):**
- Plugins → Themes → Custom Scripts → Completions

##### Component Relationships to Highlight

- Blue: Shell configurations
- Green: Development tools
- Orange: System utilities
- Purple: Security components
- Gray: Setup scripts

##### Specific Elements

a. Shell Environment Section:
- Zsh configuration structure (.config/zsh/)
- Bash utilities (.bash.d/)
- Environment variables
- Aliases and functions

b. Development Tools Section:
- Vim configuration (.vim/)
- VSCode settings
- Git configuration (.config/git/)
- Custom git commands (.local/bin/git-*)

c. Terminal Tools Section:
- Terminal emulator configs
- TMux configuration
- Zellij setup

d. Utility Section:
- Custom scripts (.local/bin/)
- Password management
- GPG configuration

##### Implementation Details

- Version control integration points
- Plugin architecture for extensible components (Vim, Zsh)

- Setup Scripts  |

- ↓

- Core Configs   |

- ↓

- Shell | Terminal | Dev | Security |

- ↓

- Extensions     |

##### Additional Notes

- Version control integration points
- Configuration inheritance patterns
- Where local customizations can be added
- System-specific configurations

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Installation & Setup Layer"
        Setup["Machine Setup Scripts"]
        MacSetup["macOS Setup"]
        UbuntuSetup["Ubuntu Setup"]
        DevContainer["DevContainer Setup"]
        Setup --> MacSetup & UbuntuSetup & DevContainer
    end

    subgraph "Core Configuration Layer"
        Shell["Shell Environment"]
        Terminal["Terminal Emulators"]
        DevTools["Development Tools"]
        SysUtils["System Utilities"]
        Security["Security Components"]
    end

    subgraph "Extensions Layer"
        Plugins["Shell & Editor Plugins"]
        Scripts["Custom Scripts"]
        Completions["Shell Completions"]
        Themes["Themes & Styling"]
    end

    %% Core to Extensions relationships
    Shell --> Plugins & Scripts & Completions
    DevTools --> Plugins & Themes
    Terminal --> Themes

    %% Setup to Core relationships
    Setup --> Shell & Terminal & DevTools & SysUtils & Security

    %% Shell Environment Components
    subgraph "Shell Details"
        Zsh["Zsh Configuration"]:::shell
        Bash["Bash Configuration"]:::shell
        EnvVars["Environment Variables"]:::shell
        Aliases["Aliases & Functions"]:::shell
    end

    %% Terminal Components
    subgraph "Terminal Details"
        Alacritty["Alacritty"]:::terminal
        Kitty["Kitty"]:::terminal
        Ghostty["Ghostty"]:::terminal
    end

    %% Development Tools Components
    subgraph "Dev Tools Details"
        Vim["Vim"]:::dev
        VSCode["VSCode"]:::dev
        Git["Git"]:::dev
        LazyGit["LazyGit"]:::dev
    end

    %% System Utilities Components
    subgraph "System Utils Details"
        TMux["TMux"]:::utils
        Zellij["Zellij"]:::utils
        CustomBin["Custom Binaries"]:::utils
    end

    %% Security Components
    subgraph "Security Details"
        GPG["GPG"]:::security
        PassStore["Password Store"]:::security
    end

    %% Component Relationships
    Shell --- Zsh & Bash & EnvVars & Aliases
    Terminal --- Alacritty & Kitty & Ghostty
    DevTools --- Vim & VSCode & Git & LazyGit
    SysUtils --- TMux & Zellij & CustomBin
    Security --- GPG & PassStore

    %% Styling
    classDef shell fill:#3498db,stroke:#2980b9,color:white
    classDef terminal fill:#2ecc71,stroke:#27ae60,color:white
    classDef dev fill:#e74c3c,stroke:#c0392b,color:white
    classDef utils fill:#f1c40f,stroke:#f39c12,color:black
    classDef security fill:#9b59b6,stroke:#8e44ad,color:white

    %% Click Events
    click Zsh "https://github.com/gooygeek/Dotfiles/tree/master/.config/zsh/"
    click Bash "https://github.com/gooygeek/Dotfiles/tree/master/.bash.d/"
    click Alacritty "https://github.com/gooygeek/Dotfiles/tree/master/.config/alacritty/"
    click Kitty "https://github.com/gooygeek/Dotfiles/tree/master/.config/kitty/"
    click Ghostty "https://github.com/gooygeek/Dotfiles/tree/master/.config/ghostty/"
    click Vim "https://github.com/gooygeek/Dotfiles/tree/master/.vim/"
    click VSCode "https://github.com/gooygeek/Dotfiles/tree/master/VSCode/"
    click Git "https://github.com/gooygeek/Dotfiles/tree/master/.config/git/"
    click TMux "https://github.com/gooygeek/Dotfiles/tree/master/.tmux/"
    click Zellij "https://github.com/gooygeek/Dotfiles/tree/master/.config/zellij/"
    click LazyGit "https://github.com/gooygeek/Dotfiles/tree/master/.config/lazygit/"
    click GPG "https://github.com/gooygeek/Dotfiles/tree/master/.gnupg/"
    click PassStore "https://github.com/gooygeek/Dotfiles/tree/master/.password-store/"
    click Setup "https://github.com/gooygeek/Dotfiles/tree/master/new machine setup/"
    click DevContainer "https://github.com/gooygeek/Dotfiles/blob/master/new machine setup/devcontainer.sh"
    click MacSetup "https://github.com/gooygeek/Dotfiles/blob/master/new machine setup/mac-setup.sh"
    click UbuntuSetup "https://github.com/gooygeek/Dotfiles/blob/master/new machine setup/ubuntu-setup.sh"
    click Plugins "https://github.com/gooygeek/Dotfiles/tree/master/.config/zsh/plugins/"
    click Completions "https://github.com/gooygeek/Dotfiles/tree/master/.config/zsh/completions/"
    click Scripts "https://github.com/gooygeek/Dotfiles/tree/master/.local/bin/"
```
