chruby-fish icon indicating copy to clipboard operation
chruby-fish copied to clipboard

Thin wrapper around chruby to make it work with the Fish shell

chruby-fish

Build Status

chruby re-implemented for the Fish shell.

Install

wget -O chruby-fish-0.8.2.tar.gz https://github.com/JeanMertz/chruby-fish/archive/v0.8.2.tar.gz
tar -xzvf chruby-fish-0.8.2.tar.gz
cd chruby-fish-0.8.2/
make install

Homebrew

chruby-fish can also be installed with homebrew:

brew install chruby-fish

Or the absolute latest chruby-fish can be installed from source:

brew install chruby-fish --HEAD

Arch Linux

chruby-fish is included in the AUR:

yay -S chruby-fish

Fish version support

This package is tested against HEAD and the latest stable version of fish.

Configuration

The chruby function is in your autoload path, so you don't need to configure it.

Homebrew uses different paths for Intel and Apple Silicon based Macs, you should configure your config.fish file accordingly. More about it here

If you use a custom install location for chruby, use the [CHRUBY_ROOT variable][chruby_root] to point in the right direction.

Auto-switching is enabled by default, set CHRUBY_AUTO_DISABLE=1 if you don't want that.

For more general instructions, see the chruby documentation.

License & Authors

Author: Jean Mertz - [email protected]

The MIT License (MIT)

Copyright (c) Jean Mertz <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.