Skip to content

iandol/elvish-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elvish-modules

Elvish is a great alternative shell, with a much simpler and a less-cruft™ experience compared to bash or zsh. It uses modules with namespaces you load to add functions.

  • cmds.elv — utility functions to perform helpful shell actions like add/remove (append-to-path, prepend-to-path, remove-from-path) or filter (filter, filter-out, filter-re, filter-re-out) lists like the path list; checking if executables are present (if-external) and others.
  • ai.elv — Use an OpenAI-compatible API to ask an LLM a question: ai:ask. You can define the system prompt: $ai:system_prompt, the API base address: $ai:api_base, the API key: ai:api_key (can be stored at ~/.config/elvish/.key). Different model names can be stored in the map $ai:models. For example: ai:ask "What is the Capital of ghana?" &model=hermes — you can use local LLM apps LM-Studio and GPT4All, but it should work with any compatible local/cloud API provider.
  • mamba.elv — support for conda / mamba / micromamba package manager (note: only tested with micromamba).
  • python.elv — a slight modification of iwoloschin's python module to support official venv virtual environments.

About

Modules for Elvish

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages