add instructions for zsh (#15)

* add zsh tab completion to docs.

* new demo gif.
This commit is contained in:
Dave Gallant
2018-10-28 22:10:18 -04:00
committed by GitHub
parent 5f762fdf3d
commit a1b7b828ae
2 changed files with 4 additions and 13 deletions

View File

@@ -3,7 +3,6 @@
Hot deals on the command line.
[![Build Status](https://travis-ci.org/davegallant/rfd.svg?branch=master)](https://travis-ci.org/davegallant/rfd)
[![PyPI version](https://badge.fury.io/py/rfd.svg)](https://badge.fury.io/py/rfd)
## Installation
@@ -14,18 +13,13 @@ pip install rfd
## Usage
![rfd_peek](https://user-images.githubusercontent.com/4519234/42729852-d43a7768-87b3-11e8-81f2-36cb81bf4b58.gif)
![rfd_demo_gif](https://user-images.githubusercontent.com/4519234/47625817-d3375500-dafd-11e8-9d86-491d4a4fb225.gif)
```bash
rfd threads <topic-id> [--limit 10]
```
### tail a post
```bash
▶ rfd posts https://forums.redflagdeals.com/koodo-targeted-public-mobile-12-120-koodo-6gb-40-no-referrals-2176935/ --tail 4
```
## Tab Completion
### bash
@@ -36,10 +30,7 @@ echo 'eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.profile
### zsh
There isn't native support for zsh but zsh's bash completion compatibility mode works:
```zsh
echo 'autoload bashcompinit
bashcompinit
eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.zshrc
echo 'eval "$(_RFD_COMPLETE=source_zsh rfd)"' >> ~/.zshrc
```