Giter Club home page Giter Club logo

fry's Introduction

fry Build Status

A simple ruby version manager for fish.

Installation

git clone git://github.com/terlar/fry.git
cd fry
make install

Add the following to the ~/.config/fish/config.fish file:

. /usr/local/share/fry/fry.fish

Arch Linux

fry is also available for Arch Linux in the AUR as the package fry or fry-git. To install, use your favorite AUR helper (yoaurt, aura, etc.).

$ yoaurt -S fry

Rubies

By default fry will look for rubies in ~/.rubies. This can be configured as you like.

ruby-build

If you have ruby-build installed, fry provides a wrapper with autocompletion and building to the correct destination. To install rubies this way, run the following command:

fry install 1.9.3-p392

Configuration

To see which configuration options are available and your current configuration, you can execute the command fry config.

Path (Rubies)

This option determines where fry looks for rubies.

# To see the path
fry config path
# To set the path
fry config path /opt/rubies

Auto-Switch

If you want fry to look for a .ruby-version file and automatically switch ruby on directory change then you can enable auto-switching. This is off by default.

# To see the auto-switch status
fry config auto
# To enable auto-switch
fry config auto on
# To disable auto-switch
fry config auto off

Pow

When you have a .ruby-version file in your home directory this will be used by pow as default. If you want it to pickup the custom ruby-version per project you have to create a .powenv inside the project folder with the following content:

export PATH="$(fish -c 'fry current --path'):$PATH"

Default Ruby

If you wish to set a default Ruby, simply call fry in ~/.config/fish/config.fish:

fry ruby-1.9

If you have enabled auto-switching, simply create a .ruby-version file in your home directory:

echo 'ruby-1.9' > ~/.ruby-version

Examples

List available rubies:

fry
  system
* 1.9.3-p392
  2.0.0-p0
  jruby-1.7.3

Install ruby:

fry install <tab>
fry install 2.0.0-p247
fry use 2.0.0-p247

Get help:

fry help

fry's People

Contributors

davidcelis avatar mrak avatar terlar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.