Skip to content

Commit 1402af2

Browse files
committed
Add zsh to readme
1 parent 66b2fa0 commit 1402af2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ Bash
4444
curl https://cdn.rawgit.com/pimterry/notes/v0.2.0/notes.bash_completion > /usr/share/bash-completion/completions/notes
4545
```
4646

47-
Zsh
47+
Zsh
48+
On *buntu based distros
49+
```bash
50+
curl https://cdn.rawgit.com/pimterry/notes/v0.2.0/notes._notes > /usr/local/share/site-functions/_notes
51+
```
52+
On other Unix distros the command should as follows
4853
```bash
4954
curl https://cdn.rawgit.com/pimterry/notes/v0.2.0/notes._notes > /usr/share/zsh/site-functions/_notes
5055
```
5156

5257
You'll need to open a new shell for this to take effect.
5358

54-
## How do I configure this?
59+
# How do I configure this?
5560

5661
To get started with you'll want to set `$EDITOR` to your favourite text editor, and probably `$NOTES_DIRECTORY` to the directory in which you'd like to use to store your notes (this defaults to `~/notes`). You'll typically want to set these as environment variables in your `.bashrc`, `.zshrc`, or similar.
5762

0 commit comments

Comments
 (0)