A simple bash script to replace
cd project_name
rvm use 2.7.1@gemset
with
rvcd project
-
Clone thie repo.
-
Edit line 5 in rvcd file, change [your projects directory]
-
Open repo directoy in terminal
-
Make rvcd file executable by running
chmod u+x rvcdor open properties of rvcd file and make executable(under Permissions).
-
Move file to usr/bin by running
sudo mv rvcd /usr/bin
Assuming you have a Gemfile and your gemset is named after your project, just type:
rvcd [project name]
If your gemset is named otherwise:
rvcd [project_name] [gemset_name]