Added `emulate -LR zsh` to most functions (will cause breakage)