From f8cf84decaa986d3f459e3e9029ba72a49b570ac Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Fri, 30 Apr 2021 12:35:26 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20add=20alternate=20option=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 ++++++++++++++++++++-------------- ugit | 18 +++++++++++++++--- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 19e2c4b..b1f1275 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ - You did an accidental `git` command you didn't want to. - You don't want to waste your time searching on _how to undo ..._ +- Because ugit is cool ## What's in the box @@ -51,23 +52,28 @@ 2. GNU utils like `awk`, `grep`, `tput` etc 3. [fzf](https://github.com/junegunn/fzf) -Install the script using `wget` +1. Install the script using `wget` + ```bash + # Linux + wget -q https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit && chmod +x ugit && mv ugit $HOME/.local/bin/ + # Mac + wget -q https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit && chmod +x ugit && mv ugit /usr/local/bin + ``` -```bash -# Linux -wget -q https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit && chmod +x ugit && mv ugit $HOME/.local/bin/ -# Mac -wget -q https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit && chmod +x ugit && mv ugit /usr/local/bin -``` + or `curl` -or `curl` + ```bash + # Linux + curl -fsSL https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit -o ugit && chmod +x ugit && mv ugit $HOME/.local/bin/ + # Mac + curl -fsSL https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit -o ugit && chmod +x ugit && mv ugit /usr/local/bin + ``` -```bash -# Linux -curl -fsSL https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit -o ugit && chmod +x ugit && mv ugit $HOME/.local/bin/ -# Mac -curl -fsSL https://github.com/Bhupesh-V/ugit/releases/latest/download/ugit -o ugit && chmod +x ugit && mv ugit /usr/local/bin -``` +2. Verify installation + ```bash + ugit --version + ``` + Optionally run `ugit --help` to see help and management commands ## Please read ⚠️ diff --git a/ugit b/ugit index 2f483f4..7908ad7 100755 --- a/ugit +++ b/ugit @@ -231,6 +231,18 @@ show_version() { } print_help() { + cat <