From f759e0bd13c8f27c7da4f71ecdf5ad31295257a2 Mon Sep 17 00:00:00 2001 From: cuberobenicio32 Date: Wed, 30 Dec 2020 00:08:18 -0300 Subject: [PATCH 1/4] Added proper README --- README.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d1c985d..bcbec31 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,24 @@ -# redyt -Search reddit with CLI +## redyt +Redyt is an utility that fetches subreddit's images and allows you to see them in the CLI. -- You need to create a ~/.cache/redyt/ directory -- Also a ~/.config/redyt/subreddit.txt +### Dependencies +* [dmenu](https://tools.suckless.org/dmenu/) +* jq + +If you are on an arch based distribution, just run -here is mine subreddit.txt: http://0x0.st/-rbq.txt +```shell +sudo pacman -S dmenu jq +``` -Programs you need are dmenu, jq +### Installation and use -note: Idk how to write readme. if anyone can do it and give me a pull request please +>NOTE: Ensure you have ~/.local/bin in your path. You can do this by typing `echo $PATH` and searching for that folder. + +```shell +git clone https://github.com/Bugswriter/redyt.git +cd redyt +make install +``` +Now, the only thing that is left to do is to write your favourite subreddits in `subreddit.txt` which is placed on `~/.config/redyt/subreddit.txt . [Here](https://0x0.st/-rbq.txt) is an example of the subreddit.txt file. From 77c735f10e742bc74ae2db47acac524cf9757687 Mon Sep 17 00:00:00 2001 From: cuberobenicio32 Date: Wed, 30 Dec 2020 00:11:47 -0300 Subject: [PATCH 2/4] Added makefile. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d84f19a --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +dest_dir=~/.local/bin/ + +install: + mkdir -p $(dest_dir) 2> /dev/null + mkdir -p ~/.cache/redyt/ + mkdir -p ~/.config/redyt/ + touch ~/.config/redyt/subreddit.txt + + cp redyt $(dest_dir) + chmod 755 $(dest_dir)redyt From f7d4cd1c97ea591257dfa7103963b166f1888c3e Mon Sep 17 00:00:00 2001 From: cuberobenicio32 Date: Wed, 30 Dec 2020 00:13:43 -0300 Subject: [PATCH 3/4] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcbec31..dae48d4 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,5 @@ git clone https://github.com/Bugswriter/redyt.git cd redyt make install ``` -Now, the only thing that is left to do is to write your favourite subreddits in `subreddit.txt` which is placed on `~/.config/redyt/subreddit.txt . [Here](https://0x0.st/-rbq.txt) is an example of the subreddit.txt file. +Now, the only thing that is left to do is to write your favourite subreddits in `subreddit.txt` which is placed on `~/.config/redyt/subreddit.txt`. [Here](https://0x0.st/-rbq.txt) is an example of the subreddit.txt file. From 9c85cae775b6dd8cce848409f05ca21cb2429380 Mon Sep 17 00:00:00 2001 From: cuberobenicio32 Date: Wed, 30 Dec 2020 00:16:31 -0300 Subject: [PATCH 4/4] Modified README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dae48d4..8b43d68 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,6 @@ git clone https://github.com/Bugswriter/redyt.git cd redyt make install ``` -Now, the only thing that is left to do is to write your favourite subreddits in `subreddit.txt` which is placed on `~/.config/redyt/subreddit.txt`. [Here](https://0x0.st/-rbq.txt) is an example of the subreddit.txt file. +The only thing that is left to do is to write your favourite subreddits in `subreddit.txt` which is placed on `~/.config/redyt/subreddit.txt`. [Here](https://0x0.st/-rbq.txt) is an example of the subreddit.txt file. +Now, you can use redyt by typing `redyt` in your terminal!