Home

Awesome

elvish-modules

Elvish is a wonderful alternative shell, much simpler, more lightweight and a less-cruft™ experience compared to POSIX shells like bash or zsh. It supports the ability to organise your code using modules and with namespaces. Elvish has a package manager, epm which allows you to use a github repo to call up your modules as needed.

Installing: add this to your rc.elv file:

epm:install &silent-if-installed github.com/iandol/elvish-modules 
use github.com/iandol/elvish-modules/cmds # my utility module
use github.com/iandol/elvish-modules/ai # my ai module
use github.com/iandol/elvish-modules/python # for python venv support
use github.com/iandol/elvish-modules/mamba # for conda/mamba support

...then to use:

cmds:if-external brew { echo "Brew is installed" } { echo "Brew not installed" }
cmds:do-if-path .config { echo "Config dir exists" }
ai:ask "What is the Capital of Ghana?"
mamaba:activate myenv