hlissner / zsh-autopair

Auto-close and delete matching delimiters in zsh
MIT License
525 stars 37 forks source link

Can I add install instruction for Oh My Zsh users? #37

Closed s4my closed 4 months ago

s4my commented 5 months ago

Can I submit a PR adding install instruction of Oh My Zsh users.

happyTonakai commented 5 months ago

Hi, please do it. I'm using oh my zsh and waiting for it.

happyTonakai commented 5 months ago

I clone the repo in the plugin directory as git clone https://github.com/hlissner/zsh-autopair.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autopair and execute

source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autopair/autopair.zsh
autopair-init

Add it to plugins

plugins=(... zsh-autopair)

and add source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autopair/autopair.zsh to .zshrc as well. But it only works if I source ~/.zshrc. When I launch a new zsh it doesn't work.

s4my commented 5 months ago

Hi, please do it. I'm using oh my zsh and waiting for it.

Here you go #38.