summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2016-03-30 02:05:07 -0400
committerRob Loach <robloach@gmail.com>2016-03-30 02:05:07 -0400
commit616ac67924212df2f75139c94ca323f13f249dc6 (patch)
tree135d9448eba0c1e9adf725c202dab5f110e4e488 /plugins
parentb4a85eca9de2d2d2a31a2ca8f9e1846cf53108db (diff)
downloadzsh-616ac67924212df2f75139c94ca323f13f249dc6.tar.gz
zsh-616ac67924212df2f75139c94ca323f13f249dc6.tar.bz2
zsh-616ac67924212df2f75139c94ca323f13f249dc6.zip
Add 'asdf' plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asdf/README.md27
-rw-r--r--plugins/asdf/asdf.plugin.zsh7
2 files changed, 34 insertions, 0 deletions
diff --git a/plugins/asdf/README.md b/plugins/asdf/README.md
new file mode 100644
index 000000000..e8aa976bc
--- /dev/null
+++ b/plugins/asdf/README.md
@@ -0,0 +1,27 @@
+## asdf
+
+**Maintainer:** [@RobLoach](https://github.com/RobLoach)
+
+Adds integration with [asdf](https://github.com/asdf-vm/asdf), the extendable version manager, with support for Ruby, Node.js, Elixir, Erlang and more.
+
+### Installation
+
+1. Enable the plugin by adding it to your `plugins` definition in `~/.zshrc`.
+
+ ```
+ plugins=(asdf)
+ ```
+
+2. [Install asdf](https://github.com/asdf-vm/asdf#setup) by running the following:
+ ```
+ git clone https://github.com/asdf-vm/asdf.git ~/.asdf
+ ```
+
+### Usage
+
+See the [asdf usage documentation](https://github.com/asdf-vm/asdf#usage) for information on how to use asdf:
+
+```
+asdf plugin-add nodejs git@github.com:asdf-vm/asdf-nodejs.git
+asdf install nodejs 5.9.1
+```
diff --git a/plugins/asdf/asdf.plugin.zsh b/plugins/asdf/asdf.plugin.zsh
new file mode 100644
index 000000000..8736d2ff8
--- /dev/null
+++ b/plugins/asdf/asdf.plugin.zsh
@@ -0,0 +1,7 @@
+# Find where asdf should be installed.
+ASDF_DIR="${ASDF_DIR:-$HOME/.asdf}"
+
+# Load asdf, if found.
+if [ -f $ASDF_DIR/asdf.sh ]; then
+ . $ASDF_DIR/asdf.sh
+fi