Keath Milligan

On software development, quality, security and broken racecars

Cmder tip: enable forward slash completion

Cmder includes better command-line tab completion – normally, paths will be completed using the default Windows path separator, the backslash (“\”). But Windows has recognized the forward slash (“/”) as an optional path separator for a while now and there are instances where this might be desirable, especially if you switch between Windows and Unix-like environments (macOS, Linux) often as I do.

 

Internally, cmder uses a utility called clink to enable bash-style command-line completion (and other things). You can enable forward-slash as a path separator, but adding some additional clink configuration to your cmder setup. If it does not exist, create cmder.lua in the config directory where you installed cmder. Add the following code:

Save the file and restart cmder. Paths will now be completed using forward slashes instead of backslashes.

This issue was originally raised in the clink issues database.

2 Comments

  1. It is good for me
    Thanks, bro
  2. Thank you so much for this!

Leave a Reply

Your email address will not be published.

*

© 2017 Keath Milligan

Theme by Anders NorenUp ↑