cmder: `ls` et al slow after updating cmder

I had Win7 with cmder Version v1.1.4.1.

After updating to Win10 I noticed that cmder was out of date (due to the lambda not displaying correctly.)

I downloaded cmder from the website and now it says I’m running Version v1.2.9.

After doing this I notice that ls for instance often takes 20-30 seconds to return any output. (3 folders, 3 files.)

If I run ls against right after then it’s fast again. But give it a few minutes and it will again be slow.

Any ideas what causes that?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 31 (10 by maintainers)

Most upvoted comments

I’m not sure if I had the same exact issue, but I experienced the same thing you described whenever I was connected to a remote VPN. Disconnecting from the VPN resolved the issue, but obviously that’s not a viable solution.

What seems to be working for me now:

 mkpasswd -l -c > C:\cmder\vendor\git-for-windows\etc\passwd
 mkgroup -l -c > C:\cmder\vendor\git-for-windows\etc\group

Then, in C:\cmder\vendor\git-for-windows\etc\nsswitch.conf:

# Begin /etc/nsswitch.conf

passwd: files # db
group: files # db

db_enum: cache builtin

db_home: env windows cygwin desc
db_shell: env windows # cygwin desc
db_gecos: env # cygwin desc

# End /etc/nsswitch.conf

The change here was that I commented out the db portion under passwd (I think group had that there already). Now, everything seems to be running quickly again.