chrisant996 / clink

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

clink does not save command that prefix with space #591

Closed iamqiz closed 5 months ago

iamqiz commented 5 months ago

~~if i run "dir" in cmd , clink does not save this command in history

mean a space~~ if i run ` dir` in cmd , clink does not save this command in history (there is a SPACE character at the beginning of ` dir`)
chrisant996 commented 5 months ago

You can't use < space > like that because GitHub interprets it as HTML, and no one can see what you've typed.

So, I'm editing your post to make it readable.

chrisant996 commented 5 months ago

if i run dir in cmd , clink does not save this command in history (there is a SPACE character at the beginning of dir)

This is intentional.

The documentation section Saved Command History explains.

iamqiz commented 5 months ago

@chrisant996 I solve it by clink set history.ignore_space False. thank you very much!