From 0576a9f099150b164f07e9417470afd19eb440a0 Mon Sep 17 00:00:00 2001 From: LittleboyHarry Date: Sat, 13 Aug 2022 22:14:58 +0800 Subject: [PATCH] Update README.md fix install path --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90d210d9..2b0ccc0e 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,8 @@ users, so let's start with that. ``` mkdir -p $ZSH_CUSTOM/plugins/tldr -ln -s bin/completion/zsh/_tldr $ZSH_CUSTOM/plugins/tldr/_tldr +ln -s $(npm config get prefix)/lib/node_modules/tldr/bin/completion/zsh/_tldr $ZSH_CUSTOM/plugins/tldr/_tldr +# yarn: ln -s $(yarn global dir)/node_modules/tldr/bin/completion/zsh/_tldr $ZSH_CUSTOM/plugins/tldr/_tldr ``` Then add tldr to your oh-my-zsh plugins, @@ -154,7 +155,8 @@ fpath = (my/completions $fpath) ### Bash ``` -ln -s bin/completion/bash/tldr ~/.tldr-completion.bash +ln -s $(npm config get prefix)/lib/node_modules/tldr/bin/completion/bash/tldr ~/.tldr-completion.bash +# yarn: ln -s $(yarn global dir)/node_modules/tldr/bin/completion/bash/tldr ~/.tldr-completion.bash ``` Now add the following line to our bashrc file: