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 officialvenv
virtual environments.