Installing locally with bundler is no problem but global install with bundler or just gem causes a conflict around fastlane in fact.
This script allows to install dg into ~/.dg, so it's not global, and to use dg seemlessly through a custom binstub.
The rough flow
Run cd ~/.dg
Run bundle install --path vendor/bundle
Create a custom binstub which runs bundle exec dg as ~/.dg/link/dg
Create a symlink /usr/local/bin/dg -> ~/.dg/link/dg
Installing locally with
bundler
is no problem but global install withbundler
or justgem
causes a conflict around fastlane in fact. This script allows to installdg
into~/.dg
, so it's not global, and to usedg
seemlessly through a custom binstub.The rough flow
cd ~/.dg
bundle install --path vendor/bundle
bundle exec dg
as~/.dg/link/dg
/usr/local/bin/dg
-> ~/.dg/link/dg