Example shell configuration snippets for use with Modshells.
Copy the snippets you want into your modshells directory:
# Copy all examples
cp -r examples/* ~/.config/nushell/modshells/
# Or copy individual files
cp examples/tools/git.sh ~/.config/nushell/modshells/tools/| Directory | Purpose |
|---|---|
|
Essential settings loaded first (PATH, history, shell options) |
|
Tool-specific configurations (git, fzf, starship) |
|
General aliases and utility functions |
|
Operating system specific settings (Linux, macOS) |
|
Visual customisations (colours, prompt) |
Files are sourced alphabetically. Use numeric prefixes to control load order:
-
00-*.sh- Load first (PATH, critical settings) -
10-*.sh- Load early (history, options) -
20-*.sh- Load later (depends on earlier settings) -
No prefix - Load in alphabetical order
These examples are starting points. Modify them to suit your workflow:
-
Copy the file to your modshells directory
-
Edit to add/remove aliases and settings
-
Restart your shell or run
source ~/.bashrc