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
{
inputs = {
mellon.url = "github:ejrichards/mellon";
};
outputs = {
mellon,
...
}:
{
...
nixosConfigurations = {
modules = [
mellon.nixosModules.default
];
};
}
Usage#
use github.com/ejrichards/mellon/<module>
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~
}