- Explicitly run
chgems
underbash
, to avoid running underdash
.
cd
into the root directory before running ruby. This will activate anycd
/PROMPT_COMMAND
hooks.- Use
$PWD
instead ofreadlink -f
, which is not supported on OSX.
chgems
is now an executable. Please remove the following:/etc/profile.d/chgems.sh
symlink.. /usr/local/share/chgems/chgems.sh
from~/.profile
,~/.bashrc
or~/.zshrc
.
- No longer override
$PS1
. This annoys users and does not work with zsh. - Print entering and exiting messages when spawning a sub-shell.
- Forgot to add the MIT license.
- Fixed
make install
to run on FreeBSD / OpenBSD. - No longer override
PREFIX
.
- Updated the Makefile to be compatible with the dash shell.
- Fixed a warning under zsh when
shift
is called andchgems
was called without arguments.
- Fixed
make install
to not automatically symlink chgems into/etc/profile.d/
:- OS X does not have a
/etc/profile.d/
. - Give users the choice between global or local installation.
- OS X does not have a
- Added a post-install message to the homebrew recipe.
- Fixed
make install
to work on OS X. - Added a homebrew recipe.
- Install
chgems.sh
into$PREFIX/share/chgems/
. - Install a symlink to
chgems.sh
into/etc/profile.d/
.
- Preserve the current
$GEM_PATH
by callingGem.path
.
- Added unit-tests using shunit2.
- Added support for zsh.
- Print errors to STDERR.
- Correctly pass environment variables to the sub-shell / command.
- Run commands in a sub-shell, otherwise exec a fresh
$SHELL
. - Ensure the return value of the sub-shell / command is returned.
- Check if the directory passed to
chgems
exists. - Expand relative paths passed to
chgems
to absolute paths. - Use
eval
instead ofenv
to execute the command or sub-shell. cd
into the directory before executing the command, thencd
out.
- Include
Gem.user_dir
andGem.default_dir
into `$GEM_PATH.
- Initial release.