From 4d1088d8d095596a4e8e0bd25f397015e7f4999e Mon Sep 17 00:00:00 2001 From: Wes Roberts Date: Fri, 4 Jun 2021 21:08:42 -0400 Subject: [PATCH 1/3] Rename zoxide.py to __init__.py for easy install and update --- README.md | 9 ++++----- zoxide.py => __init__.py | 0 2 files changed, 4 insertions(+), 5 deletions(-) rename zoxide.py => __init__.py (100%) diff --git a/README.md b/README.md index 78df8e5..af18c6b 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,12 @@ Easily jump between commonly visited directories by running this in ranger: - Supports tab completion - Works with Python >= 2.7, or >= 3.1 -## Install +## Install via Git -Simply copy `zoxide.py` to your `~/.config/ranger/plugins` folder. For example: +Clone this repository into your `~/.config/ranger/plugins` folder. For example: -``` -mkdir -p ~/.config/ranger/plugins -wget -O ~/.config/ranger/plugins/zoxide.py https://raw.githubusercontent.com/jchook/ranger-zoxide/master/zoxide.py +```sh +git clone git@github.com:jchook/ranger-zoxide.git ~/.config/ranger/plugins/zoxide ``` ## Keyboard Shortcut diff --git a/zoxide.py b/__init__.py similarity index 100% rename from zoxide.py rename to __init__.py From dbcf49dab2b729274ea9977e9c6734935627faa0 Mon Sep 17 00:00:00 2001 From: Wes Roberts Date: Sat, 5 Jun 2021 17:32:40 -0400 Subject: [PATCH 2/3] Instructions for installing without git --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index af18c6b..aa7e576 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,16 @@ Clone this repository into your `~/.config/ranger/plugins` folder. For example: git clone git@github.com:jchook/ranger-zoxide.git ~/.config/ranger/plugins/zoxide ``` +## Install without Git + +For ranger versions older than 1.9.3, or to install without Git, simply download +`__init__.py` to your `~/.config/ranger/plugins` directory. For example: + +```sh +mkdir -p ~/.config/ranger/plugins +wget -O ~/.config/ranger/plugins/zoxide.py https://raw.githubusercontent.com/jchook/ranger-zoxide/master/zoxide.py +``` + ## Keyboard Shortcut You may wish to add a keyboard shortcut to quickly `z` between common From 687a9b842fa565cc40b408613aaa2a96563d0bc6 Mon Sep 17 00:00:00 2001 From: Wes Roberts Date: Sat, 5 Jun 2021 17:44:27 -0400 Subject: [PATCH 3/3] Updated README formatting --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aa7e576..d4f6e0f 100644 --- a/README.md +++ b/README.md @@ -15,17 +15,18 @@ Easily jump between commonly visited directories by running this in ranger: - Supports tab completion - Works with Python >= 2.7, or >= 3.1 -## Install via Git +## Install -Clone this repository into your `~/.config/ranger/plugins` folder. For example: +For ranger >= 1.9.3, use Git to clone this repository into your +`~/.config/ranger/plugins` folder. For example: ```sh git clone git@github.com:jchook/ranger-zoxide.git ~/.config/ranger/plugins/zoxide ``` -## Install without Git +**Legacy Install** -For ranger versions older than 1.9.3, or to install without Git, simply download +For ranger versions older than 1.9.3, or to install without Git, download `__init__.py` to your `~/.config/ranger/plugins` directory. For example: ```sh