开发者

completion-prefix-display-length doesn't work on my terminal.app

开发者 https://www.devze.com 2023-04-12 03:15 出处:网络
I\'ve found a lot of questions on .inputrc, and the answers included people using Mac 开发者_高级运维OS X terminal.app.

I've found a lot of questions on .inputrc, and the answers included people using Mac 开发者_高级运维OS X terminal.app.

But I've set this property on and it didn't change readline's behaviour. I tried the same .inputrc on Ubuntu and it worked…

Is there some specific action I should take on terminal.app?


Well, I think I've finally cracked it. I will answer my own question for future reference here:

Mac OS X uses editline (descendant from libedit that kinda emulates readline) instead of the more commom readline command line text handler.

I'm still learning how editline works, but I guess it isn't 100% compatible with readline's .inputrc.

So my completion-prefix-display-length attribute probably doesn't work with my version of OS X editline.


So that was it indeed. I've made the following test to prove my hypothesis: I've compiled readline under Mac OS X and then run bash with the readline lib I've compiled (through with-readline tool). It worked fine, all my inputrc attributes worked and I finished my questions.

So in Mac OS X readline is shadowed by editline (it still has readline.h includes and realine's dynamic libraries, but they are editline's code).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号