I've recently switched to zsh mainly for its auto-completion. However, zsh has syntax for scripting different from bash, and I use a lot of ad-hoc one-liners. For example, echo 'qwe\tasd' expands the \t to tab in zsh but not in bash. I want to keep all the bash syntax while using zsh's auto-completions.

I've tried adding emulate -LR bash to my .zshrc. However, it seems to break some of my zsh tools, namely zsh-autocomplete and starship.

How can I keep my bash syntax while using zsh?


As pointed out in the comments and in emulate bash in zsh breaking dynamically assigned file descriptor, if you want Bash-like behavior in Zsh, you should actually put emulate ksh in your .zshrc file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.