lsd-rs / lsd

The next gen ls command
Apache License 2.0
12.85k stars 420 forks source link

mklink issue on windows #991

Open Chaprnks opened 4 months ago

Chaprnks commented 4 months ago

Installation

Placed all contents of github release in system directory. Also ensured that this directory is included in windows environment paths. C:\Windows\System\

variables

Expected behavior

I tried to mklink the original lsd.exe -> ls.exe, so I can use ls drop-in replacement for windows. mklink "C:\Windows\System\ls.exe" "C:\Windows\System\lsd.exe"

expected

Actual behavior

`error: unexpected argument '--show-control-chars' found

note: to pass '--show-control-chars' as a value, use '-- --show-control-chars'

Usage: ls [OPTIONS] [FILE]...`

actual

zwpaper commented 4 months ago

looks like you were still calling the original ls command.

you could try:

  1. calling the abs path of symblink C:\Windows\System\ls.exe
  2. put the symblink under another dir, and put the dir in the beginning of PATH env