Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbenv for csh #820

Closed
dazza-codes opened this issue Nov 13, 2015 · 4 comments
Closed

rbenv for csh #820

dazza-codes opened this issue Nov 13, 2015 · 4 comments

Comments

@dazza-codes
Copy link

Yes, it's not common, but I need to use a grid computing network that has the default shell set to csh. Adding rbenv to the path is easy, but what about the init? Is there an rbenv that will work in csh?

@mislav
Copy link
Member

mislav commented Nov 13, 2015

rbenv doesn't depend on a particular shell to function.

If you have this in your shell startup file:

eval "$(rbenv init -)"

this should work with posix-compatible shells, but was not tested with csh and I'm not sure if it will work for you. So instead, you can simply add rbenv's shims to PATH:

# 1. Ensure rbenv is in PATH. This depends on rbenv install location, but typically:
export PATH=~/.rbenv/bin:"$PATH"
# 2. Ensure rbenv's shims are in PATH:
export PATH="$(rbenv root)/shims:$PATH"

If you initialize manually like this, most rbenv functionality will work, except for rbenv shell command which will be unavailable.

@elbartoloco
Copy link

I have found that Rbenv is actually dependent on Bash.

If you are under Freebsd, the easiest is to install rbenv from the port or pkg, which will install Bash automatically.

@daveola
Copy link

daveola commented Mar 1, 2016

I have created a full solution for rbenv using tcsh that allows for "rbenv shell" and "rbenv rehash" as well as a simple replacement for the "rbenv init" and shell completions as well!

You can read about and download (creative commons attribution license) the solution at:

http://solutions.davesource.com/20160301.Ruby-rbenv-tcsh-csh-Complete-Solution/

@sjfloat
Copy link

sjfloat commented Apr 24, 2019

Thanks Dave!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants