4 ms·
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 arou
by protomyth 5y ago
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.
- nerdponx 5y agoIt's probably possible, look up ZLE and the `bindkey` builtin.
- arp242 5y agoThis 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.