tere icon indicating copy to clipboard operation
tere copied to clipboard

Add shell instructions for nushell

Open Br1ght0ne opened this issue 2 years ago • 6 comments

https://nushell.sh

Br1ght0ne avatar Aug 26 '23 12:08 Br1ght0ne

Thanks! This looks very similar to #89, looks like it doesn't handle options passed to tere, such as tere --version or tere --ignore-case, am I right?

mgunyho avatar Aug 26 '23 15:08 mgunyho

I did not notice #89 before opening this - sorry! Yes, this currently doesn't handle any options, as nushell complains about flags if they don't appear in the subcommand signature. I'll look into it, thanks!

Br1ght0ne avatar Aug 26 '23 15:08 Br1ght0ne

Hi this does not work for me, does anyone have a working config for using there in nushell? @Br1ght0ne

ejenk0 avatar Dec 15 '23 08:12 ejenk0

We made some language changes to Nushell, and it should be possible to use def --wrapped --env to achieve both options passing and preserving the directory after cd.

kubouch avatar Jan 18 '24 09:01 kubouch

Cool! Feel free to update the PR to include these. Maybe it's also good to mention that version > x.y.z is required, like it is saying for Xonsh currently.

I updated the README with some info on how the shell alias should work: https://github.com/mgunyho/tere#testing-a-new-shell-integration

mgunyho avatar Jan 18 '24 15:01 mgunyho

Thanks for the heads up @kubouch! I'll try it out in the coming days.

Br1ght0ne avatar Jan 25 '24 10:01 Br1ght0ne