# k6rthik/shellkit architecture

> Architecture diagram of the GitHub repository k6rthik/shellkit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/k6rthik/shellkit
- Repository: https://github.com/k6rthik/shellkit

## Overview

shellkit is a portable Bash/Zsh configuration framework: a user sources its entry point from their shell startup file, which loads modular settings and interactive conveniences into the running shell. Its main documented branches cover environment and PATH setup, functions and aliases, FZF workflows, and optional local overrides; tool-management scripts and WSL/Starship configuration are also represented. Relationships follow README statements only; source excerpts were unavailable, so implementation details and undocumented connections are omitted.

Main entry points: [`init.sh`](https://github.com/k6rthik/shellkit/blob/main/init.sh) (Configuration entry), [`fzf.sh`](https://github.com/k6rthik/shellkit/blob/main/fzf.sh) (FZF workflows), [`env.sh`](https://github.com/k6rthik/shellkit/blob/main/env.sh) (Environment settings), [`paths.sh`](https://github.com/k6rthik/shellkit/blob/main/paths.sh) (PATH setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Shell startup"]
  node_init["Configuration entry<br/>[init.sh]"]
  node_installer["Installation helper<br/>[install.sh]"]
  node_bootstrap["Bootstrap helper<br/>[bootstrap.sh]"]
end

subgraph group_config["Core configuration"]
  node_env["Environment settings<br/>[env.sh]"]
  node_paths["PATH setup<br/>[paths.sh]"]
  node_functions["Shell functions<br/>[functions.sh]"]
  node_aliases["Command aliases<br/>[aliases.sh]"]
  node_local["Local overrides"]
end

subgraph group_interactive["Interactive features"]
  node_fzf["FZF workflows<br/>[fzf.sh]"]
  node_external_tools["Enhanced CLI tools"]
end

subgraph group_platform["Platform and tools"]
  node_wsl["WSL initialization<br/>[wsl.sh]"]
  node_starship["Starship prompt<br/>[starship.sh]"]
  node_tool_check["Tool checker<br/>[check_tools.sh]"]
  node_tool_install["Tool installer<br/>[install_tools.sh]"]
end

node_user(("Shell user"))
node_startup["Shell startup file"]
node_runtime(("Running shell"))

node_user -->|"configures"| node_startup
node_startup -->|"sources"| node_init
node_init -->|"loads configuration"| node_runtime
node_init -->|"loads"| node_env
node_init -->|"loads"| node_paths
node_init -->|"loads"| node_functions
node_init -->|"loads"| node_aliases
node_init -->|"loads"| node_fzf
node_init -->|"loads if present"| node_local
node_fzf -->|"integrates"| node_external_tools

click node_init "https://github.com/k6rthik/shellkit/blob/main/init.sh"
click node_env "https://github.com/k6rthik/shellkit/blob/main/env.sh"
click node_paths "https://github.com/k6rthik/shellkit/blob/main/paths.sh"
click node_functions "https://github.com/k6rthik/shellkit/blob/main/functions.sh"
click node_aliases "https://github.com/k6rthik/shellkit/blob/main/aliases.sh"
click node_fzf "https://github.com/k6rthik/shellkit/blob/main/fzf.sh"
click node_wsl "https://github.com/k6rthik/shellkit/blob/main/wsl.sh"
click node_starship "https://github.com/k6rthik/shellkit/blob/main/starship.sh"
click node_tool_check "https://github.com/k6rthik/shellkit/blob/main/check_tools.sh"
click node_tool_install "https://github.com/k6rthik/shellkit/blob/main/install_tools.sh"
click node_installer "https://github.com/k6rthik/shellkit/blob/main/install.sh"
click node_bootstrap "https://github.com/k6rthik/shellkit/blob/main/bootstrap.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_init,node_installer,node_bootstrap,node_user toneBlue
class node_env,node_paths,node_functions,node_aliases,node_local toneAmber
class node_fzf,node_external_tools toneMint
class node_wsl,node_starship,node_tool_check,node_tool_install toneRose
class node_startup,node_runtime toneIndigo
```

## Components

### Shell startup

- [Configuration entry](https://github.com/k6rthik/shellkit/blob/main/init.sh): `init.sh`
- [Installation helper](https://github.com/k6rthik/shellkit/blob/main/install.sh): `install.sh`
- [Bootstrap helper](https://github.com/k6rthik/shellkit/blob/main/bootstrap.sh): `bootstrap.sh`

### Core configuration

- [Environment settings](https://github.com/k6rthik/shellkit/blob/main/env.sh): `env.sh`
- [PATH setup](https://github.com/k6rthik/shellkit/blob/main/paths.sh): `paths.sh`
- [Shell functions](https://github.com/k6rthik/shellkit/blob/main/functions.sh): `functions.sh`
- [Command aliases](https://github.com/k6rthik/shellkit/blob/main/aliases.sh): `aliases.sh`
- **Local overrides**

### Interactive features

- [FZF workflows](https://github.com/k6rthik/shellkit/blob/main/fzf.sh): `fzf.sh`
- **Enhanced CLI tools**

### Platform and tools

- [WSL initialization](https://github.com/k6rthik/shellkit/blob/main/wsl.sh): `wsl.sh`
- [Starship prompt](https://github.com/k6rthik/shellkit/blob/main/starship.sh): `starship.sh`
- [Tool checker](https://github.com/k6rthik/shellkit/blob/main/check_tools.sh): `check_tools.sh`
- [Tool installer](https://github.com/k6rthik/shellkit/blob/main/install_tools.sh): `install_tools.sh`

### Other components

- **Shell user**
- **Shell startup file**
- **Running shell**

## Connections

- Shell user → Shell startup file: configures (evidence: `README.md`)
- Shell startup file → Configuration entry: sources (evidence: `README.md`)
- Configuration entry → Running shell: loads configuration (evidence: `README.md`)
- Configuration entry → Environment settings: loads (evidence: `README.md`)
- Configuration entry → PATH setup: loads (evidence: `README.md`)
- Configuration entry → Shell functions: loads (evidence: `README.md`)
- Configuration entry → Command aliases: loads (evidence: `README.md`)
- Configuration entry → FZF workflows: loads (evidence: `README.md`)
- Configuration entry → Local overrides: loads if present (evidence: `README.md`)
- FZF workflows → Enhanced CLI tools: integrates (evidence: `README.md`)
