Modules for Elvish Shell
Elvish 76.3%
Nix 23.7%
13 1 0

Clone this repository

https://tangled.org/ejri.dev/mellon
git@knot.ejri.dev:ejri.dev/mellon

For self-hosted knots, clone URLs may differ based on your setup.

README.md

mellon - Speak, friend, and enter#

Modules for Elvish Shell

Install#

use epm
epm:install &silent-if-installed=$true github.com/ejrichards/mellon

NixOS#

flake.nix supplies a NixOS module that lets you import in the same manner as epm

{
    ...
    nixosConfigurations = {
      modules = [
        mellon.nixosModules.default
      ];
    };
}

Usage#

use github.com/ejrichards/mellon/<module>

atuin.elv#

Add bindings for Ctrl-r and Up to use atuin for searching history.

if (has-external atuin) {
	use github.com/ejrichards/mellon/atuin
	set edit:insert:binding[Ctrl-r] = { atuin:search }
	set edit:insert:binding[Up] = { atuin:search-up }
}

fzf.elv#

Add bindings for Ctrl-r and Up to use fzf for searching history.

if (has-external fzf) {
	use github.com/ejrichards/mellon/fzf
	set edit:insert:binding[Ctrl-r] = { fzf:history }
	set edit:insert:binding[Up] = { fzf:history }
}

yazi.elv#

Add an alias y that will cd on quit.

if (has-external yazi) {
	use github.com/ejrichards/mellon/yazi
	edit:add-var y~ $yazi:y~
}