# renergyr/dotfiles architecture

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

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

## Overview

##### Main Components Organization
Create three main vertical sections representing the core components:

a. Shells Configuration (Left Section)
- Two parallel branches:
- ZSH (Unix-based systems)
- PowerShell (Windows)
- Both to Oh-My-Posh configuration files

b. Terminal Emulators (Middle Section)
- Create two parallel branches:
- ITerm2 (macOS)
- Tabby.sh (Cross-platform)

c. Development Tools (Right Section)
- ESLint Configuration
- Base configurations
- Framework-specific configs (Adonis, Svelte, Vue)
- GitHub Actions
- Different workflow types
- Trae.ai Settings

##### Component Relationships
- Configuration flow (blue)
- Tool integration (green)
- Dependencies (orange)

##### Specific Implementation Details

- Shell components (Purple)
- Terminal emulators (Blue)
- Development tools (Green)
- Configuration files (Yellow)

- Rectangles: Main components
- Hexagons: Configuration files
- Clouds: External tools/services

##### A Dependencies Section
- Required packages for each terminal
- Font dependencies (MonoLisa, FiraCode)
- External tool dependencies

##### Platform Specificity
- Which components are platform-specific
- Cross-platform compatibility where applicable

##### Configuration Flow
- Demonstrate how configurations are applied
- Override patterns and inheritance

##### Integration Points
- How different tools interact
- Extension points for custom configurations

##### Version Requirements
- Version numbers for critical components
- Compatibility requirements

- Using consistent spacing
- Grouping related components
- Maintaining clear hierarchy
- Using appropriate text size for readability

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Shell Configurations"
        ZSH["ZSH"]:::shell
        PWSH["PowerShell"]:::shell
        MacZSH["macOS ZSH"]:::config
        LinZSH["Linux ZSH"]:::config
        WinPS["Windows PS"]:::config
        
        ZSH --> MacZSH
        ZSH --> LinZSH
        PWSH --> WinPS
    end

    subgraph "Terminal Emulators"
        ITERM["iTerm2"]:::terminal
        TABBY["Tabby.sh"]:::terminal
        ITERM_COL["iTerm Colors"]:::config
        ITERM_CONF["iTerm Config"]:::config
        TABBY_CONF["Tabby Config"]:::config
        
        ITERM --> ITERM_COL
        ITERM --> ITERM_CONF
        TABBY --> TABBY_CONF
    end

    subgraph "Development Tools"
        subgraph "ESLint"
            ESLINT_BASE["Base Config"]:::tool
            ESLINT_BROWSER["Browser Config"]:::config
            ESLINT_MAIN["Main Config"]:::config
            
            ESLINT_FW["Framework Configs"]:::tool
            ESLINT_ADONIS["Adonis"]:::config
            ESLINT_SVELTE["Svelte"]:::config
            ESLINT_VUE["Vue"]:::config
            
            ESLINT_BASE --> ESLINT_BROWSER
            ESLINT_BASE --> ESLINT_MAIN
            ESLINT_FW --> ESLINT_ADONIS
            ESLINT_FW --> ESLINT_SVELTE
            ESLINT_FW --> ESLINT_VUE
        end

        subgraph "GitHub Actions"
            GH_DOCKER["Docker Build"]:::workflow
            GH_LINT["Linting"]:::workflow
            GH_NPM["NPM"]:::workflow
            GH_RELEASE["Release"]:::workflow
        end

        subgraph "Oh-My-Posh"
            OMP_PWSH["PowerShell Theme"]:::theme
            OMP_ZSH["ZSH Theme"]:::theme
            
            OMP_PWSH -.-> PWSH
            OMP_ZSH -.-> ZSH
        end

        TRAE["Trae.ai Settings"]:::tool
    end

    classDef shell fill:#e6e6fa,stroke:#333
    classDef terminal fill:#add8e6,stroke:#333
    classDef tool fill:#90ee90,stroke:#333
    classDef config fill:#ffffe0,stroke:#333
    classDef workflow fill:#ffa07a,stroke:#333
    classDef theme fill:#dda0dd,stroke:#333

    click ZSH "https://github.com/rEnergYr/dotfiles/tree/main/shells/zsh/"
    click MacZSH "https://github.com/rEnergYr/dotfiles/blob/main/shells/zsh/macos.zshrc"
    click LinZSH "https://github.com/rEnergYr/dotfiles/blob/main/shells/zsh/linux.zshrc"
    click WinPS "https://github.com/rEnergYr/dotfiles/blob/main/shells/powershell/windows.ps1"
    click ITERM "https://github.com/rEnergYr/dotfiles/tree/main/terminals/iterm2/"
    click ITERM_COL "https://github.com/rEnergYr/dotfiles/blob/main/terminals/iterm2/macos.itermcolors"
    click ITERM_CONF "https://github.com/rEnergYr/dotfiles/blob/main/terminals/iterm2/Default.json"
    click TABBY_CONF "https://github.com/rEnergYr/dotfiles/blob/main/terminals/tabby.sh/config.yaml"
    click ESLINT_BASE "https://github.com/rEnergYr/dotfiles/tree/main/tools/eslint/base/"
    click ESLINT_BROWSER "https://github.com/rEnergYr/dotfiles/blob/main/tools/eslint/base/browser.js"
    click ESLINT_MAIN "https://github.com/rEnergYr/dotfiles/blob/main/tools/eslint/base/config.js"
    click ESLINT_ADONIS "https://github.com/rEnergYr/dotfiles/blob/main/tools/eslint/tools/adonis.js"
    click ESLINT_SVELTE "https://github.com/rEnergYr/dotfiles/blob/main/tools/eslint/tools/svelte.js"
    click ESLINT_VUE "https://github.com/rEnergYr/dotfiles/blob/main/tools/eslint/tools/vue.js"
    click GH_DOCKER "https://github.com/rEnergYr/dotfiles/blob/main/tools/github-actions/build-docker.yaml"
    click GH_LINT "https://github.com/rEnergYr/dotfiles/blob/main/tools/github-actions/linter.yaml"
    click GH_NPM "https://github.com/rEnergYr/dotfiles/blob/main/tools/github-actions/npm.yaml"
    click GH_RELEASE "https://github.com/rEnergYr/dotfiles/blob/main/tools/github-actions/release.yml"
    click OMP_PWSH "https://github.com/rEnergYr/dotfiles/blob/main/tools/oh-my-posh/pwsh.omp.json"
    click OMP_ZSH "https://github.com/rEnergYr/dotfiles/blob/main/tools/oh-my-posh/zsh.omp.json"
    click TRAE "https://github.com/rEnergYr/dotfiles/blob/main/tools/trae-ai/settings.json"
```
