-1

I would like to specify the startup command to run on the :terminal shell. E.g. bash -c ls. The shell can be specified with set shell=bash, but how to specify the arguments? In another use case, I need to specify the shell used by WSL on Windows (wsl -e fish) with set shell=wsl (which currently opens bash by default).

1
0

It can be done with :terminal $SHELL $CUSTOM $ARGS.

1
  • 1
    I believe you can also do :terminal ++shell {args}
    – D. Ben Knoble
    Jan 17 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.