cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.87k stars 177 forks source link

cd shortcuts (like ..) broken on ZSH #116

Closed MerlinDE closed 3 years ago

MerlinDE commented 3 years ago

Sourcing mcfly's mcfly.zshbreaks my zsh shortcuts for changing directories (e.g. .. instead of cd ..). It seems to me that the call to emulate -L zsh in mcfly.zsh resets the AUTOCD option, resulting in those shortcuts being broken.

Removing the emulate call solved the issue for me. Not sure about any side effects this might cause.

cantino commented 3 years ago

I'm honestly not sure. I may have cargo culted that setting from an example zsh script.

durin42 commented 3 years ago

This appears to be a duplicate of #91, though I think this has some useful debugging information.

https://github.com/powerline/powerline/commit/98b7ed2950c0432bc2e2c103637bee5dbce0fffe is probably a relevant patch to another project - I might try and take a look at some point.

cantino commented 3 years ago

I'm not having any issues in zsh with emulate -L zsh entirely removed so I'll just remove it.