lima-vm / lima-vm/lima

nushell as login shell fails on lima command

Open
#4,122 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

Seems like `lima` or `limactl shell default` tries to login and change directory but fails in [nushell](https://www.nushell.sh/) as nushell doesn't support `||` syntax. Here the specific error

```
lima
Error: nu::parser::shell_oror

× The '||' operator is not supported in Nushell
╭─[source:1:23]
1 │ cd /Users/redacted || cd /Users/redacted ; exec "$SHELL" --login
· ─┬
· ╰── instead of '||', use 'try' or 'or'
╰────
help: use 'try' instead of the shell '||', or 'or' instead of the boolean '||'
```

This may happen with any shell that doesn't support POSIX shell syntax though.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.