0.0
Low commit activity in last 3 years
No release in over a year
path-install can help you adding a new PATH to .bash_profile and /etc/profile.d/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
~> 13.0.1
 Project Readme

path-install

path-install can help you adding a new PATH to .bash_profile and /etc/profile.d/ .

Installation

$ gem install path-install
(you may need to run as root or through sudo.)

Usage

$ path-install file or directory...
$ path-install /usr/local/ruby2.5.1/bin | tee -a ~/.bash_profile
export PATH=/usr/local/ruby2.5.1/bin:$PATH

$ path-install /usr/local/ruby2.5.1/bin/ruby | sudo tee -a /etc/profile.d/ruby.sh
test -x /usr/local/ruby2.5.1/bin/ruby && \
export PATH=/usr/local/ruby2.5.1/bin:$PATH

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/s3fxn/path-install.

License

The gem is available as open source under the terms of the MIT License.