Modules for Elvish Shell

fix: Move from github to sourcehut urls

Changed files
+20 -8
+17 -5
README.md
··· 3 3 Modules for [Elvish Shell](https://github.com/elves/elvish) 4 4 5 5 # Install 6 + ## epm 7 + Required until git.sr.ht is added upstream: 8 + ```elvish 9 + use epm 10 + mkdir -p $epm:managed-dir/git.sr.ht/ 11 + echo "{ 12 + \"method\": \"git\", 13 + \"protocol\": \"https\", 14 + \"levels\": \"2\" 15 + }" > $epm:managed-dir/git.sr.ht/epm-domain.cfg 16 + ``` 6 17 18 + Install module 7 19 ```elvish 8 20 use epm 9 - epm:install &silent-if-installed=$true github.com/ejrichards/mellon 21 + epm:install &silent-if-installed=$true git.sr.ht/~ejri/mellon 10 22 11 23 ``` 12 24 ··· 28 40 # Usage 29 41 30 42 ```elvish 31 - use github.com/ejrichards/mellon/<module> 43 + use git.sr.ht/~ejri/mellon/<module> 32 44 ``` 33 45 34 46 ## `atuin.elv` ··· 36 48 Add bindings for `Ctrl-r` and `Up` to use atuin for searching history. 37 49 ```elvish 38 50 if (has-external atuin) { 39 - use github.com/ejrichards/mellon/atuin 51 + use git.sr.ht/~ejri/mellon/atuin 40 52 set edit:insert:binding[Ctrl-r] = { atuin:search } 41 53 set edit:insert:binding[Up] = { atuin:search-up } 42 54 } ··· 47 59 Add bindings for `Ctrl-r` and `Up` to use fzf for searching history. 48 60 ```elvish 49 61 if (has-external fzf) { 50 - use github.com/ejrichards/mellon/fzf 62 + use git.sr.ht/~ejri/mellon/fzf 51 63 set edit:insert:binding[Ctrl-r] = { fzf:history } 52 64 set edit:insert:binding[Up] = { fzf:history } 53 65 } ··· 58 70 Add an alias `y` that will `cd` on quit. 59 71 ```elvish 60 72 if (has-external yazi) { 61 - use github.com/ejrichards/mellon/yazi 73 + use git.sr.ht/~ejri/mellon/yazi 62 74 edit:add-var y~ $yazi:y~ 63 75 } 64 76 ```
+3 -3
flake.nix
··· 23 23 name = "mellon"; 24 24 src = ./.; 25 25 installPhase = '' 26 - mkdir -p $out/share/elvish/lib/github.com/ejrichards/mellon 27 - cp *.elv $out/share/elvish/lib/github.com/ejrichards/mellon 26 + mkdir -p $out/share/elvish/lib/git.sr.ht/~ejri/mellon 27 + cp *.elv $out/share/elvish/lib/git.sr.ht/~ejri/mellon 28 28 ''; 29 29 }; 30 30 } ··· 34 34 { pkgs, ... }: 35 35 { 36 36 environment.systemPackages = [ self.packages.${pkgs.system}.default ]; 37 - environment.pathsToLink = [ "/share/elvish/lib/github.com/ejrichards" ]; 37 + environment.pathsToLink = [ "/share/elvish/lib/git.sr.ht/~ejri" ]; 38 38 }; 39 39 }; 40 40 }