mrjohannchang / zsh-interactive-cd

Fish like interactive tab completion for cd in zsh
Mozilla Public License 2.0
314 stars 37 forks source link

escape sed in case sed has been aliased #9

Closed jedahan closed 5 years ago

jedahan commented 5 years ago

I use alias sed=sd. This ensures we use the regular sed. There might be a better way to do this, perhaps builtin sed instead of \sed

mrjohannchang commented 5 years ago

Hi @jedahan, thanks for the PR. I've waited for more than 3 weeks and there's no other people providing a different way, so I'm taking this.

jrwrigh commented 4 years ago

FYI, \sed will only escape aliased functions, but not shell functions (which some plugins do). To do both, you can change it to command sed.

mrjohannchang commented 4 years ago

Refined it, thank you @jrwrigh !