Skip to content

Commit 473ae9e

Browse files
ardeshirjjf
authored andcommitted
Add some notes to usage section
1 parent c8591da commit 473ae9e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.mkd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ If you want to use [Homebrew](http://github.com/Homebrew/homebrew) (Mac OS X):
7070
list
7171
version
7272

73+
Here is a basic example:
74+
7375
```shell
7476
cd my-project
7577

@@ -87,11 +89,11 @@ rbenv gemset list
8789

8890
# You can delete the gemset with the following command:
8991
rbenv gemset delete [version] [gemset]
92+
```
9093

91-
In case you wonder the gem are stored at:
92-
``/usr/local/var/rbenv/versions/$RUBY_VERSION/gemsets/YOUR_PROJECT_NAME/gems``.
94+
By default the rbenv-gemset init command will create the primary gemset, which is the project name, and it will initialize the directory under the ``$(rbenv prefix "$RBENV_VERSION")/gemsets/$RBENV_GEMSET``. If you are using the ``bundler`` it should install the gems and the dependencies in above path.
9395

94-
Also if you are using the ``bundler`` it should install the gems and the dependencies in above path.
96+
You can modify the content of .rbenv-gemsets so the gems will be installed in the project directory (for example .gems or ./gems)
9597

9698

9799
**Special environment variable tips and tricks**

0 commit comments

Comments
 (0)