Saturday 15 September 2012

linux - lesskey config does not get used by less pager when used with git on OSX -


This works fine in Linux, so I'm thinking this is a problem with Mac running low version.

I have the same ~ / .lesskey file set up; Low key runs successfully in both places, as a result ~ /. are identical:

  ec2-user @ domU-12-31-39-0F-D6-5D: ~ / usage 1: 13: 37% md5sum ~ / .less 0d9f50f079b66b8ef8518940b6674a7e / Home / ec2-user / .less% less - v less 436 copyright (c) 1984-2009 Mark Nudeman   

and

  slu @ Stevens- Macbook-Pro: ~ / Use 21: 14% MD5 ~ / .on MD5 (/ User / SLI.Alse) = 0d9f50f079b66b8ef8518940b6674a7e% cum- vi less 458 (posx Regular Expression) Copyright (c) 1984-2012 Mark Nudelman < / Code>  

For the keybinding, man is also applicable on the Mac, but it only happens when I Do not run the command related to git me that return less regular Kunjibainding.

I got the problem!

Guit / usr / bin / less , but I set less than the source (and I got this problem when it happened to me that I could install less than a homebro And I think).

The manpage and bus running will run lower / usr / local / bin / less , but for whatever reason the original one will catch the old one , Which is not compatible with the lower key. / usr / local / bin comes before my / usr / bin .

My solution, then sudo mv / usr was / bin / less / usr / bin / less-old .

No comments:

Post a Comment