0

I am using Macbook Pro 2017 (with touch bar) with macOS Sierra.

When using terminal, the autocomplete adds a character.

For example, typing 'cd Des' + tab, I am expecting 'cd Desktop' autocomplete.

Instead, I get Desktop/k

At this stage, if I click backspace, the letter 'k' always remains. Only able to remove characters before 'k'. Example: Desktopk, Desktok and so on.

If I click left or right arrow keys, I get weird characters as follows:

Deskto^[[D^[[Ck

If I just click enter to get out of the above mess, followed by clicking up arrow to get the previous command (in this case cd Desktop), I get the following print out instead.

^[[A

Is there a way around this to get auto complete without the extra character and arrow keys to work properly (as in up arrow brings up previous commands and left/right works to move between characters)? Had no similar issues on my previous macbook pro 2015. Please assist.

2
  • Don't freak out. Your terminal settings are probably messed up—what happens if you use a different Terminal profile?
    – SilverWolf
    Feb 25, 2018 at 2:45
  • @seaturtle, erm not freaking out. Issue resolved. See my answer.
    – karvai
    Feb 25, 2018 at 19:09

1 Answer 1

0

The above issue was caused by using ksh shell which seems to be the default for my laptop. After switching it to bash shell, all the above issues have been resolved.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .