Using lf (indispensable to me) on a Windows 10 machine using Cygwin

70 views
Skip to first unread message

dav...@gmail.com

unread,
Nov 2, 2018, 2:31:30 PM11/2/18
to lf-fm
Hi,
  I HAVE to get lf running on a Windows machine. I'm lost without it on Widnoze! I've tried all kinds of ways to get it to load the right shell and configure, but I'm stumped. So I have a Windows 10 latest build, and I installed Cygwin on it since I need gcc. But my lf crashes -- here's the log:
2018/11/02 14:27:40 hi!
2018/11/02 14:27:40 reading file: C:\ProgramData\lf\lfrc
2018/11/02 14:27:40 shell: ${{ mkdir -p $HOME/.trash }} -- []
2018/11/02 14:27:40 running shell: exit status 1
2018/11/02 14:27:40 loading files: []

it also prints The syntax of the command is incorrect.

Part of my lfrc:

# Some systems use more efficient shell implementations for non-interactive use
# (e.g. `dash`) mapped to `/bin/sh`. By setting this option here we can tell
# `lf` to use this implementation for shell commands. This can decrease the
# startup times of commands but may also change the syntax that you are used to
# (e.g. non-POSIX features provided by your regular shell).
#set shell E:/Cygwin/bin/bash.exe
(nothing here seems to work in trying to add the path to the /bin/bash in cygwin)

# Set previewer to highlight via preview.sh (in this directory):
#set previewer highlight.exe
(same here -- I can't get it to read a preview.sh and execute it)

Is there ANYONE that has done this? I can't believe I'm the first. What do other usually do to install lf on Windows?

Thanks,
Dave Mazzoni

Gokcehan Kara

unread,
Nov 3, 2018, 8:33:31 AM11/3/18
to dav...@gmail.com, lf...@googlegroups.com
Hi Dave,

As far as I'm aware, Go does not officially support cygwin so things may or may not work correctly. In addition, termbox applications are rare compared to ncurses applications so I would not be surprised if no one has tried to make those work on cygwin so far. I don't have cygwin installed currently so I can't say for sure.

I think WSL may be a better option nowadays:


I have ubuntu18.04 installed on my windows machine and 64bit linux binary seems to work without a problem.

Of course another option is to use the native windows binary if you are able to work with cmd.exe or powershell.

Hope this helps.

Regards,
Gokcehan

--
You received this message because you are subscribed to the Google Groups "lf-fm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lf-fm+un...@googlegroups.com.
To post to this group, send email to lf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lf-fm/600d8c1d-fab8-4610-ba82-0d5155e878c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages