@@ -279,6 +279,97 @@ core/
279279| Visual customisations: colours, themes, terminal-specific settings
280280|===
281281
282+ == Examples
283+
284+ The `examples/` directory contains ready-to-use configuration snippets:
285+
286+ [source,bash]
287+ ----
288+ # Copy all examples to your modshells directory
289+ cp -r examples/* ~/.config/nushell/modshells/
290+
291+ # Or copy individual files
292+ cp examples/tools/git.sh ~/.config/nushell/modshells/tools/
293+ cp examples/misc/aliases.sh ~/.config/nushell/modshells/misc/
294+ ----
295+
296+ === Available Examples
297+
298+ [cols="1,2"]
299+ |===
300+ | File | Description
301+
302+ | `core/00-path.sh`
303+ | PATH modifications for ~/.local/bin, Cargo, Go, Deno
304+
305+ | `core/10-history.sh`
306+ | History size, deduplication, timestamps, ignore patterns
307+
308+ | `core/20-options.sh`
309+ | Shell options (extglob, cdspell, globstar), editor, locale
310+
311+ | `tools/git.sh`
312+ | Git aliases (gs, ga, gc, gp, gl, glog, etc.)
313+
314+ | `tools/fzf.sh`
315+ | Fuzzy finder setup with fd integration
316+
317+ | `tools/starship.sh`
318+ | Starship prompt initialisation
319+
320+ | `misc/aliases.sh`
321+ | Navigation (.., ...), ls variants, safety nets (rm -i)
322+
323+ | `misc/functions.sh`
324+ | Utility functions: mkcd, extract, ff, fd, backup
325+
326+ | `os/linux.sh`
327+ | Package manager aliases, systemd shortcuts
328+
329+ | `os/macos.sh`
330+ | Homebrew setup, macOS-specific utilities
331+
332+ | `ui/colours.sh`
333+ | Terminal colours, GCC colours, man page colours
334+
335+ | `ui/prompt.sh`
336+ | Custom bash prompt with git branch (fallback for non-starship)
337+ |===
338+
339+ == Testing
340+
341+ === Smoke Test
342+
343+ Run the shell-based smoke test to verify the build:
344+
345+ [source,bash]
346+ ----
347+ # From the repository root
348+ ./tests/smoke_test.sh
349+ ----
350+
351+ The smoke test verifies:
352+
353+ * Source files exist
354+ * Examples have correct structure
355+ * SPDX license headers present
356+ * Binary runs (if built)
357+ * Directory creation works
358+ * Idempotency check passes
359+
360+ === Unit Tests
361+
362+ Build and run the Ada unit tests:
363+
364+ [source,bash]
365+ ----
366+ # Build tests
367+ gprbuild -p -j0 -P tests/tests.gpr
368+
369+ # Run tests
370+ ./bin/test_shell_manager
371+ ----
372+
282373== Development Status
283374
284375Current version: **v0.1**
0 commit comments