summaryrefslogtreecommitdiff
path: root/pages/docs/platform/details/development.md
diff options
context:
space:
mode:
Diffstat (limited to 'pages/docs/platform/details/development.md')
-rw-r--r--pages/docs/platform/details/development.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/pages/docs/platform/details/development.md b/pages/docs/platform/details/development.md
index 78915ad..bbda56d 100644
--- a/pages/docs/platform/details/development.md
+++ b/pages/docs/platform/details/development.md
@@ -8,13 +8,15 @@ Installing leap_cli
Install the latest:
- gem install leap_cli --install-dir ~/leap
- export PATH=$PATH:~/leap/bin
+ gem install --user-install leap_cli
-Install a particular version:
+Or install a particular version:
+
+ gem install --version 1.8 --user-install leap_cli
+
+Add the --user-install directory to your path:
- gem install leap_cli --version 1.8 --install-dir ~/leap
- export PATH=$PATH:~/leap/bin
+ [ $(which ruby) ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
### From gem, system wide
@@ -45,7 +47,7 @@ Install a particular version:
Then do one of the following to be able to run `leap` command:
cd leap_cli
- export PATH=$PATH:`pwd`/bin
+ PATH=$PATH:`pwd`/bin
alias leap="`pwd`/bin/leap"
ln -s `pwd`/bin/leap ~/bin/leap