ordre plus logique
This commit is contained in:
parent
f4a3eb4bb0
commit
995ca149cb
|
@ -18,7 +18,37 @@ Rbenv s'utilise le plus souvent au sein d'un compte utilisateur non administrate
|
||||||
|
|
||||||
On bascule ensuite dans l'environnement de l'utilisateur.
|
On bascule ensuite dans l'environnement de l'utilisateur.
|
||||||
|
|
||||||
On configure Rubygems dans le fichier `~/.gemrc` :
|
### Minimum
|
||||||
|
|
||||||
|
On clone le dépôt Git de Rbenv :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||||
|
~~~
|
||||||
|
|
||||||
|
On configure notre shell (`~/.profile`) pour initialiser Rbenv, en ajoutant ces 2 lignes :
|
||||||
|
|
||||||
|
~~~{.bash}
|
||||||
|
export PATH="~/.rbenv/bin:$PATH"
|
||||||
|
eval "$(rbenv init -)"
|
||||||
|
~~~
|
||||||
|
|
||||||
|
### Optionnel
|
||||||
|
|
||||||
|
On peut installer quelques plugins :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
$ mkdir ~/.rbenv/plugins
|
||||||
|
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
|
||||||
|
$ git clone https://github.com/rbenv/rbenv-installer.git ~/.rbenv/plugins/rbenv-installer
|
||||||
|
$ git clone https://github.com/rkh/rbenv-update.git ~/.rbenv/plugins/rbenv-update
|
||||||
|
$ git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars
|
||||||
|
$ git clone https://github.com/rbenv/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
|
||||||
|
$ git clone https://github.com/rkh/rbenv-whatis.git ~/.rbenv/plugins/rbenv-whatis
|
||||||
|
$ git clone https://github.com/rkh/rbenv-use.git ~/.rbenv/plugins/rbenv-use
|
||||||
|
~~~
|
||||||
|
|
||||||
|
On peut configurer Rubygems dans le fichier `~/.gemrc` pour limiter la quantité de documentation installée pour les gems :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
---
|
---
|
||||||
|
@ -29,33 +59,6 @@ update: --no-document
|
||||||
gem: --no-document
|
gem: --no-document
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
On clone le dépôt Git de Rbenv :
|
|
||||||
|
|
||||||
~~~
|
|
||||||
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
|
||||||
~~~
|
|
||||||
|
|
||||||
On installe quelques plugins :
|
|
||||||
|
|
||||||
~~~
|
|
||||||
$ mkdir ~/.rbenv/plugins
|
|
||||||
$ cd ~/.rbenv/plugins
|
|
||||||
$ git clone https://github.com/rbenv/rbenv-vars.git
|
|
||||||
$ git clone https://github.com/rbenv/ruby-build.git
|
|
||||||
$ git clone https://github.com/rbenv/rbenv-default-gems.git
|
|
||||||
$ git clone https://github.com/rbenv/rbenv-installer.git
|
|
||||||
$ git clone https://github.com/rkh/rbenv-update.git
|
|
||||||
$ git clone https://github.com/rkh/rbenv-whatis.git
|
|
||||||
$ git clone https://github.com/rkh/rbenv-use.git
|
|
||||||
~~~
|
|
||||||
|
|
||||||
On configure notre shell (`~/.profile`) pour initialiser Rbenv, en ajoutant ces 2 lignes :
|
|
||||||
|
|
||||||
~~~{.bash}
|
|
||||||
export PATH="~/.rbenv/bin:$PATH"
|
|
||||||
eval "$(rbenv init -)"
|
|
||||||
~~~
|
|
||||||
|
|
||||||
## Utilisation
|
## Utilisation
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue