WARNING: THIS IS CURRENTLY AN EXPERIMENT
A tool for manipulating $GEM_PATH.
- Supports pushing and popping directories from
$GEM_PATH. - Updates
$PATHaccordingly.
List gem directories:
$ gem_path
Pushes a directory onto the front of $GEM_PATH and set $GEM_HOME:
$ gem_path --push /path/to/.gem
Pops a directory off of $GEM_PATH and resets $GEM_HOME to the next
directory:
$ gem_path --pop
wget -O gem_path-0.0.1.tar.gz https://github.com/postmodern/gem_path/archive/v0.0.1.tar.gz
tar -xzvf gem_path-0.0.1.tar.gz
cd gem_path-0.0.1/
sudo make install
All releases are [PGP] signed for security. Instructions on how to import my PGP key can be found on my blog. To verify that a release was not tampered with:
wget https://raw.github.com/postmodern/gem_path/master/pkg/gem_path-0.0.1.tar.gz.asc
gpg --verify gem_path-0.0.1.tar.gz.asc gem_path-0.0.1.tar.gz
Add the following to the ~/.bashrc or ~/.zshrc file:
source /usr/local/share/gem_path.shIf you wish to enable gem_path system-wide, add the following to
/etc/profile.d/gem_path.sh:
if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
source /usr/local/share/gem_path.sh
...
fiThis will prevent gem_path from accidentally being loaded by /bin/sh, which
is not always the same as /bin/bash.
After removing the chruby configuration:
$ sudo make uninstall