chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

Request: CTRL+D to exit terminal. #611

Closed lschans closed 3 months ago

lschans commented 3 months ago

I don't know if it's possible, but the combination of CTRL+D to exit the terminal like we do on Mac and Linux would be very nice. The amount of times I've used this key combo (automatically and without thinking) in Windows just to not see my terminal window close is beyond countable.

Thanks in advance

chrisant996 commented 3 months ago

The ability exists. Refer to the docs.

Tomorrow I can point to the specific topic if you haven't found it yet.

chrisant996 commented 3 months ago

You've probably installed Clink using the setup .exe program, and installed with "Use enhanced defaults" checked. That skews a couple of defaults more to Windows, instead of Linux. Such as Ctrl-D behavior and other key bindings. You may want to read the doc section Enhanced default settings and maybe other parts of the Getting Started section as well.

The cmd.ctrld_exits setting controls whether Ctrl-D exits.

clink set cmd.ctrld_exits true

chrisant996 commented 3 months ago

And this question led me to notice there's a minor doc mistake: The cmd.ctrld_exits setting should have a "*" next to its default value, since when Clink is installed with "Use enhanced defaults" enabled in the setup .exe installer, then the default changes from "True" to "False".

lschans commented 3 months ago

Super, I made the setting and it works now. I have to admin I just installed it with all the defaults. Great job on clink by the way it makes my life a lot more sane while working in windows.