Skip to content

mgdelacroix/gw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GW - A gvm wrapper

gvm is an awesome tool, but it makes a mess of your environment variables. To avoid this but continue using gvm, I wrote gw.

gw can be used both to manage your gvm applications and to run them.

Installation

If gvm is not installed, gw will install it. During the installation, gvm will try to modify your following dotfiles: .bash_profile, .profile, .bashrc and .zshrc

To avoid letting the gvm installer modify your dotfiles, they are moved away by gw before gvm installs to a temporal directory in your $HOME.

The tepmoral directory name is printed to you right after the gw installation starts. It’s route is something like $HOME/tmp.HASH.

If something fails during the installation, please move back your dotfiles to their original locations running

mv $HOME/tmp.HASH/.* $HOME

Automated

Move to a directory in your PATH where you have write permissions and run the following command

curl -s https://raw.github.com/mgdelacroix/gw/master/install | bash

Manual

To install gw, you only need to download the gw file and copy it to any directory included on your PATH.

Activation

If you want to use the applications directly instead of using them through gw <application>, you can run the following command.

source <gw installation directory>/gwactivate

This command will create one alias per gvm application, so you can run them directly. After running this command you could execute.

grails -version

instead of

gw grails -version

If you want gw to be always active for your user, just add source <gw installation directory>/gwactivate to your favourite ~/.*rc or ~/.*profile.

Usage

Usage: gw <gvm command>
       gw <application>

   gvm commands:
      you can use a all gvm commands except 'use'. Instead, use 'default'

   applications:
      you can use any of the following:
      gaiden gradle grails griffon groovy groovyserv lazybones springboot vertx

Releases

No releases published

Packages

No packages published

Languages