{"id":13484023,"url":"https://github.com/terlar/fry","last_synced_at":"2025-04-15T20:02:36.803Z","repository":{"id":7447108,"uuid":"8789198","full_name":"terlar/fry","owner":"terlar","description":"Simple ruby version manager for fish","archived":false,"fork":false,"pushed_at":"2016-05-19T11:59:17.000Z","size":171,"stargazers_count":63,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:41:10.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terlar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-15T01:15:10.000Z","updated_at":"2025-02-18T16:28:15.000Z","dependencies_parsed_at":"2022-09-10T03:13:21.258Z","dependency_job_id":null,"html_url":"https://github.com/terlar/fry","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terlar%2Ffry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terlar%2Ffry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terlar%2Ffry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terlar%2Ffry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terlar","download_url":"https://codeload.github.com/terlar/fry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145299,"owners_count":21219966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:18.182Z","updated_at":"2025-04-15T20:02:36.765Z","avatar_url":"https://github.com/terlar.png","language":"Shell","readme":"# fry [![Build Status](https://travis-ci.org/terlar/fry.png?branch=master)](https://travis-ci.org/terlar/fry)\n\nA simple ruby version manager for [fish](https://github.com/fish-shell/fish-shell).\n\n## Installation\n\n### User\n\n```sh\ngit clone https://github.com/terlar/fry.git\ncd fry\nmake user-install\n```\n\n#### [fisherman](https://github.com/fisherman/fisherman)\n\n```fish\nfisher terlar/fry\n```\n\n#### [plug](https://github.com/terlar/fish-plug)\n\n```fish\nplug terlar/fry\n```\n\n### System-wide\n\n```sh\ngit clone https://github.com/terlar/fry.git\ncd fry\nmake install\n```\n\n#### Arch Linux\n\n`fry` is also available for Arch Linux in the [AUR](https://aur.archlinux.org) as the package [fry](https://aur.archlinux.org/packages/fry/) or [fry-git](https://aur.archlinux.org/packages/fry-git/).\nTo install, use your favorite AUR helper (`yaourt`, `aura`, etc.).\n\n```sh\nyaourt -S fry\n```\n\n#### OS X\n\n`fry` is also available for OS X in the [homebrew](http://brew.sh) as the\nformula `fry` via [tap](https://github.com/igas/homebrew-fry).\n\n```sh\nbrew tap igas/fry\nbrew install fry\n```\n\nIf you want to install `master` version, add `--HEAD` to install command.\n\n## Rubies\n\nBy default `fry` will look for rubies in `~/.rubies`. This can be configured as you like.\n\n### Install (with ruby-install or ruby-build)\nIf you have [ruby-install](https://github.com/postmodern/ruby-install) or\n[ruby-build](https://github.com/sstephenson/ruby-build) installed, `fry` provides a wrapper\nwith auto-completion and building to the correct destination.\nTo install rubies this way, run the following command:\n\n```fish\n# To see available rubies\nfry install\n# To install a specific ruby version\nfry install jruby-1.7.9\n```\n\n## Configuration\n\nTo see which configuration options are available and your current configuration,\nyou can execute the command `fry config`.\n\n### Path (Rubies)\n\nThis option determines where `fry` looks for rubies.\n\n```fish\n# To see the path\nfry config path\n# To set the path\nfry config path /opt/rubies\n```\n\n#### Prepend path\n\nThis option determines if your ruby path should be prepended or not. However it will never be at the end of your `PATH` since we are using `fish_user_paths` which is prepended to `PATH`. However if you have specified other paths inside your `fish_user_paths` then those will have higher priority. To change this behavior you can toggle this. The default behavior is append.\n\n```fish\n# To prepend to the fish_user_paths\nfry config prepend on\n# To append to the fish_user_paths\nfry config prepend off\n```\n\n### Auto-Switch\n\nIf you want `fry` to look for a [.ruby-version](https://gist.github.com/fnichol/1912050) file and\nautomatically switch ruby on directory change then you can enable auto-switching. This is off by default.\n\n```fish\n# To see the auto-switch status\nfry config auto\n# To enable auto-switch\nfry config auto on\n# To disable auto-switch\nfry config auto off\n```\n\n#### Prax/Pow\n\nIf you are using [prax](https://github.com/ysbaddaden/prax) or\n[pow](https://github.com/basecamp/pow) you can make it utilize the\nauto-switching capability.\n\nWhen you have a `.ruby-version` file in your home directory this will be\nused used by default. If you want it to pickup the custom ruby-version\nper project you have to create a `.praxconfig` in your home directory or\nfor pow, you need to create a `.powenv` inside every project folder.\n\nRun the following commands:\n\n```fish\n# If you have auto-switch, it will use whatever is specified in your .ruby-version\nfry env \u003e ~/.praxconfig\n# Specify a specific ruby to run\nfry env rbx-2.2.6 \u003e ~/ruby_project/.praxenv\n```\n\n### Installer\n\nIf you want to select which installer `fry` should use, you can do it\nthrough this option. There are currently support for `ruby-install` and\n`ruby-build`. But you could easily define your own wrapper if you use\nsome other tool.\n\n```fish\n# To list available installer wrappers\nfry installers\n# To see the installer used\nfry config installer\n# To set the desired installer\nfry config installer ruby-install\n```\n\n### Default Ruby\n\nIf you wish to set a default Ruby, simply call `fry` in `~/.config/fish/config.fish`:\n\n```fish\nfry ruby-1.9\n```\n\nIf you have enabled auto-switching, simply create a `.ruby-version` file in your home directory:\n\n```fish\necho 'ruby-1.9' \u003e ~/.ruby-version\n```\n\n## Examples\n\nList available rubies:\n\n```fish\nfry\n  system\n* 1.9.3-p392\n  2.0.0-p0\n  jruby-1.7.3\n```\n\nInstall ruby:\n\n```fish\nfry install \u003ctab\u003e\nfry install 2.0.0-p247\nfry use 2.0.0-p247\n```\n\nGet help:\n\n```fish\nfry help\n```\n","funding_links":[],"categories":["Environment Management","Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterlar%2Ffry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterlar%2Ffry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterlar%2Ffry/lists"}