denisidoro / navi

An interactive cheatsheet tool for the command-line
Apache License 2.0
14.61k stars 489 forks source link

/usr/bin/bash: line 1: C:ProgramDatachocolateylibnavitoolsnavi.exe: command not found #897

Open hslima00 opened 1 month ago

hslima00 commented 1 month ago

Describe the bug Any navi command results in a error in windows 10, installation from scoop.

To Reproduce Steps to reproduce the behavior:

  1. Use winget to install navi from scoop, version 2.23
  2. Open cmd and run navi
  3. Error shown: /usr/bin/bash: line 1: C:ProgramDatachocolateylibnavitoolsnavi.exe: command not found

Expected behavior Normally run navi

Screenshots

image image

Versions:

image
welcome[bot] commented 1 month ago

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

wangshuai-007 commented 3 weeks ago

It is correct in windows .

If you want use navi in windows, you must create command by yourself.

First, you should create your cheats file. by default,It is %AppData%\navi\cheats\ Then create yourself cheats fold, just like my_cheats,if fold not exist ,create it. the full path is %AppData%\navi\cheats\my_cheats\ Then you can create your first sample cheat file in my_cheats folder. There is my ii.cheats

% ii

# ii open my_cheats path
powershell.exe  'ii "\$env:AppData\navi\cheats\my_cheats"'

Then, run command navi -p C:\Users\{user}\AppData\Roaming\navi\cheats\my_cheats, select ii command.

the -p param is your chaeats folder's real full path.

It will work.

Next time,just run navi command ,your cheats file in my_cheats will include.