Repository: cantino/mcfly (language: rust)

Issue:
cd shortcuts (like ..) broken on ZSH
Sourcing mcfly's `mcfly.zsh`breaks 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.


Discussion / hints:
I'm honestly not sure. I may have cargo culted that setting from an example zsh script.
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.
I'm not having any issues in zsh with `emulate -L zsh` entirely removed so I'll just remove it.

Fix patch:
diff --git a/mcfly.zsh b/mcfly.zsh
index 65b9650b..9fda135d 100644
--- a/mcfly.zsh
+++ b/mcfly.zsh
@@ -9,8 +9,6 @@ if [[ "$__MCFLY_LOADED" == "loaded" ]]; then
 fi
 __MCFLY_LOADED="loaded"
 
-emulate -L zsh
-
 # Ensure HISTFILE exists.
 export HISTFILE="${HISTFILE:-$HOME/.zsh_history}"
 if [[ ! -r "${HISTFILE}" ]]; then


Test patch: