nvs icon indicating copy to clipboard operation
nvs copied to clipboard

nvs.sh fails on first run, at line 17

Open s-a-c opened this issue 3 years ago • 3 comments

╭─xxx ╰─λ . "$NVS_HOME/nvs.sh" install ~/.nvs/nvs.sh (line 17): Missing end to balance this if statement if [ -n "${NVS_HOME}" -a -z ${NVS_ROOT} ]; then ^ from sourcing file ~/.nvs/nvs.sh .: Error while reading file “/home/sylvanus/.nvs/nvs.sh”

╭─xxx [🔴] ×

s-a-c avatar Apr 05 '21 18:04 s-a-c

What kind of shell are you using?

In case of cmder, I think you would have to use nvs.cmd, not nvs.sh, see this info in https://github.com/jasongin/nvs/pull/77#issuecomment-352276013:

cmder is just a different window around the Windows cmd.exe shell

I did propose adding some documentation for cmder in PR #77.

brody4hire avatar Apr 06 '21 22:04 brody4hire

What kind of shell are you using?

I am using fish in garudalinux

s-a-c avatar Apr 11 '21 14:04 s-a-c

fish is not currently supported directly, but there is a workaround. See https://github.com/jasongin/nvs/issues/69#issuecomment-406770755

jasongin avatar Apr 12 '21 05:04 jasongin