Skip to content

Instantly share code, notes, and snippets.

@antage
Created December 1, 2011 14:56
Show Gist options
  • Select an option

  • Save antage/1417345 to your computer and use it in GitHub Desktop.

Select an option

Save antage/1417345 to your computer and use it in GitHub Desktop.

Revisions

  1. antage revised this gist Sep 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    apt-get -y install build-essential git-core zlib1g-dev libssl-dev libreadline5-dev
    apt-get -y install build-essential git-core zlib1g-dev libssl-dev libreadline6-dev

    git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv

  2. antage revised this gist Apr 29, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install-rbenv-user.sh
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,5 @@
    echo 'if [ -z "$(type rbenv 2> /dev/null | head -1 | grep function)" ]; then' >> ~/.bashrc
    echo ' export RBENV_ROOT=/usr/local/rbenv' >> ~/.bashrc
    echo ' export PATH=$RBENV_ROOT/bin:$PATH' >> ~/.bashrc
    echo ' eval "$(rbenv init -)"' >> ~/.bashrc
    echo 'fi' >> ~/.bashrc
  3. antage revised this gist Apr 25, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
    echo 'export RBENV_ROOT=/usr/local/rbenv' > /etc/profile.d/rbenv.sh
    echo 'export PATH=$RBENV_ROOT/bin:$PATH' >> /etc/profile.d/rbenv.sh
    echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
    ln -s /usr/local/rvm/completions/rbenv.bash /etc/bash_completion.d/rbenv
    ln -s /usr/local/rbenv/completions/rbenv.bash /etc/bash_completion.d/rbenv

    source /etc/profile.d/rbenv.sh

  4. antage revised this gist Feb 9, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,6 @@ source /etc/profile.d/rbenv.sh

    git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
    cd /tmp/ruby-build
    ./install.sh
    PREFIX=/usr/local/rbenv ./install.sh
    cd ..
    rm -rf /tmp/ruby-build
  5. antage revised this gist Dec 1, 2011. 2 changed files with 6 additions and 4 deletions.
    7 changes: 4 additions & 3 deletions install-rbenv-user.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    #!/bin/bash

    # per-user install
    echo 'if [ -z "$(type rbenv 2> /dev/null | head -1 | grep function)" ]; then' >> /root/.bashrc
    echo ' export PATH=/usr/local/rbenv/bin:$PATH' >> /root/.bashrc
    echo 'fi' >> /root/.bashrc
    echo 'if [ -z "$(type rbenv 2> /dev/null | head -1 | grep function)" ]; then' >> ~/.bashrc
    echo ' export RBENV_ROOT=/usr/local/rbenv' >> ~/.bashrc
    echo ' export PATH=$RBENV_ROOT/bin:$PATH' >> ~/.bashrc
    echo 'fi' >> ~/.bashrc
    3 changes: 2 additions & 1 deletion install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,8 @@ git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv


    # system wide install
    echo 'export PATH=/usr/local/rbenv/bin:$PATH' > /etc/profile.d/rbenv.sh
    echo 'export RBENV_ROOT=/usr/local/rbenv' > /etc/profile.d/rbenv.sh
    echo 'export PATH=$RBENV_ROOT/bin:$PATH' >> /etc/profile.d/rbenv.sh
    echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
    ln -s /usr/local/rvm/completions/rbenv.bash /etc/bash_completion.d/rbenv

  6. antage revised this gist Dec 1, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    apt-get -y install build-essential git-core
    apt-get -y install build-essential git-core zlib1g-dev libssl-dev libreadline5-dev

    git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv

  7. antage revised this gist Dec 1, 2011. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,10 @@ echo 'export PATH=/usr/local/rbenv/bin:$PATH' > /etc/profile.d/rbenv.sh
    echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
    ln -s /usr/local/rvm/completions/rbenv.bash /etc/bash_completion.d/rbenv

    source /etc/profile.d/rbenv.sh
    source /etc/profile.d/rbenv.sh

    git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
    cd /tmp/ruby-build
    ./install.sh
    cd ..
    rm -rf /tmp/ruby-build
  8. antage created this gist Dec 1, 2011.
    6 changes: 6 additions & 0 deletions install-rbenv-user.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash

    # per-user install
    echo 'if [ -z "$(type rbenv 2> /dev/null | head -1 | grep function)" ]; then' >> /root/.bashrc
    echo ' export PATH=/usr/local/rbenv/bin:$PATH' >> /root/.bashrc
    echo 'fi' >> /root/.bashrc
    13 changes: 13 additions & 0 deletions install-rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/bash

    apt-get -y install build-essential git-core

    git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv


    # system wide install
    echo 'export PATH=/usr/local/rbenv/bin:$PATH' > /etc/profile.d/rbenv.sh
    echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
    ln -s /usr/local/rvm/completions/rbenv.bash /etc/bash_completion.d/rbenv

    source /etc/profile.d/rbenv.sh