mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-06 00:33:40 +00:00
add instructions for zsh (#15)
* add zsh tab completion to docs. * new demo gif.
This commit is contained in:
15
README.md
15
README.md
@@ -3,7 +3,6 @@
|
||||
Hot deals on the command line.
|
||||
|
||||
[](https://travis-ci.org/davegallant/rfd)
|
||||
|
||||
[](https://badge.fury.io/py/rfd)
|
||||
|
||||
## Installation
|
||||
@@ -14,18 +13,13 @@ pip install rfd
|
||||
|
||||
## Usage
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
```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
|
||||
```
|
||||
|
Reference in New Issue
Block a user