From ce9cd2b0806f0d4b5c9e3e1e89052ce8e89a3bf5 Mon Sep 17 00:00:00 2001 From: ejrichards <1760589+ejrichards@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:09:40 -0500 Subject: [PATCH] docs: fixing elvish install instructions --- docs/installing-mise.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/installing-mise.md b/docs/installing-mise.md index 12eaed7c45..019ca97adf 100644 --- a/docs/installing-mise.md +++ b/docs/installing-mise.md @@ -334,14 +334,15 @@ make sure they match) Add following to your `rc.elv`: ```shell -var mise: = (eval &ns=[&] &on-end=$put~ (mise activate elvish | slurp)) +var mise: = (ns [&]) +eval (mise activate elvish | slurp) &ns=$mise: &on-end={|ns| set mise: = $ns } mise:activate ``` Optionally alias `mise` to `mise:mise` for seamless integration of `mise {activate,deactivate,shell}`: ```shell -fn mise {|@args| mise:mise $@args } +edit:add-var mise~ {|@args| mise:mise $@args } ``` ### Something else?