Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there a way to change the autocomplete key in zsh from tab to esc? I know it's a minor thing but it really does screw up my desire to switch. I looked around and the solution wasn't obvious or my google-fu is severally lacking.


This probably does what you want:

  bindkey '^[' complete-word
You can also use "expand-or-complete", which is what Tab is mapped to by default and will also expand things (e.g. "ls *<Esc>" will expand the "*").

You may want to set lower KEYTIMEOUT too, so it doesn't wait as long for further keys after an escape. I'm not sure what the default is.


It's probably possible, look up ZLE and the `bindkey` builtin.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: