Modules for Elvish Shell
use epm
epm:install &silent-if-installed=$true github.com/ejrichards/mellon
flake.nix
supplies a NixOS module that lets you import in the same manner as epm
{
...
nixosConfigurations = {
modules = [
mellon.nixosModules.default
];
};
}
use github.com/ejrichards/mellon/<module>
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 }
}
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 }
}
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~
}