akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.21k stars 170 forks source link

[BUG] Clean the terminal does not work on windows when updating the directory #512

Closed haeuslerd closed 9 months ago

haeuslerd commented 9 months ago

Is there an existing issue for this?

Current Behavior

When switching directory in Windows and opening :ToggleTerm again the clear command gets excuted which is not a valid command on windows.

Expected Behavior

Depending on the os type the correct command should be launched. clear --> for macunix cls --> for windows

Steps To Reproduce

run neovim :ToggleTerm on windows 10/11 with cmd

Environment

- OS: windows 10/11
- neovim version: v0.9.4
- Shell: cmd

Anything else?

No response