Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path assumes you have a local clone of the codebase. But maybe that wasn't clear. I'd like to keep both versions of this. Maybe we can clarify and say that if you have a local clone of the repo, use bin/completion/zsh/_tldr or else use $(npm config get prefix)/lib/node_modules/tldr/bin/completion/zsh/_tldr once you have installed the tool?

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,
Expand Down Expand Up @@ -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:
Expand Down