Skip to content
forked from cdlm/fari.sh

fari.sh — fresh, ready-to-hack Pharo images

License

Notifications You must be signed in to change notification settings

Pharophile/fari.sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fari

fari: To do, to make (eo) — Lighthouses (it)

Fari downloads and prepares fresh, ready-to-hack Pharo images for you, so you can forget about the usual setup dance: get image, run it, open workspace, juggle windows, copy-paste, do-it, save image under new name…

$ git clone [email protected]/$user/$repo.git
$ cd $repo
$ fari.sh

Install

Drop or link fari.sh in your $PATH.

Configuration

To have code automatically loaded in the fresh image, add a load.st file containing the needed code snippet in your project, typically something like:

"load.st"
Metacello new baseline: 'Foo';
  repository: 'gitlocal://./src';
  load.

This will generate a pharo-1c0ffee.image file. The hex suffix comes from the downloaded snapthot and identifies which sources file matches the image.

Named images: Instead of load.st, you can also use a named load script, e.g. foo.load.st, resulting in a matching foo-*.image. Several named images can be generated, each with specific settings, by having as many named load scripts. If present, load.st is loaded before the named load script of each image; this is useful for sharing configuration in all named images.

Personal settings: any existing local.st or foo.local.st files get loaded after the load scripts; those are intended for loading personal tools and settings, and should thus be left out of version control.

Environment variables: Fari takes a few environment variables into account. We recommend direnv to make any setting persistent and project-specific.

PHARO_PROJECT: image name used in the absence of a named load script; defaults to pharo.

PHARO: name of the Pharo VM command-line executable. Defaults to pharo-ui, assuming that you have it in your $PATH. If you get your VMs from get.pharo.org, set it to ./pharo-ui.

PHARO_VERSION: Pharo release, as used in the get.pharo.org URLs; defaults to 70.

PHARO_FILES: URL prefix for downloading the image; defaults to http://files.pharo.org/get-files/${PHARO_VERSION}.

License

The Fari source is available on Github, and is released under the MIT license. See the Docco generated docs for more information: https://cdlm.github.io/fari.sh

About

fari.sh — fresh, ready-to-hack Pharo images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 97.3%
  • Makefile 2.7%