From 1ac62c2874a9abdd520d48cd4531ed77b9b83e26 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 3 Oct 2024 13:22:29 -0400 Subject: [PATCH] Add oh-my-bash support --- README.md | 7 +++++++ git-open.plugin.sh | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100755 git-open.plugin.sh diff --git a/README.md b/README.md index ca7c90f..55117e1 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,13 @@ start zsh, and periodically checking for updates to the git repository. You can also add the plugin to a running zsh with `antigen bundle paulirish/git-open` for testing before adding it to your `.zshrc`. +#### [Oh-My-Bash](https://github.com/ohmybash/oh-my-bash) + +1. `git clone https://github.com/paulirish/git-open.git $OSH_CUSTOM/plugins/git-open` +2. Add `git-open` to your plugin list - edit `~/.bashrc` and change + `plugins=(...)` to `plugins=(... git-open)` +3. `source ~/.bashrc` + #### [Oh-My-Zsh](http://ohmyz.sh/) 1. `git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open` diff --git a/git-open.plugin.sh b/git-open.plugin.sh new file mode 100755 index 0000000..9ec8296 --- /dev/null +++ b/git-open.plugin.sh @@ -0,0 +1,6 @@ +# This plugin is MIT licensed to match the git-open license. +# +# Make git-open easy to install and keep up to date if you're using a +# Bash framework like oh-my-bash. + +export PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )":${PATH}