Skip to content

Latest commit

 

History

History

project.sh

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

project.sh

Tools to navigate and manage source code repositories living on GitHub.
$ROOT/$ORG/REPO

Example

To clone this repository, run:

$ clone juliangruber project.sh

With $ROOT set to ~/dev/, this repository will have been cloned to ~/dev/juliangruber/project.sh.

Installation

source project.sh
export PROJ_ROOT=~/dev/

Functions

goto $ORG $REPO

Go to $ROOT/$ORG/REPO. If this directory does not exist, the project will be cloned for you. This makes it the main function to use.

clone $ORG $REPO

Clone the project from https://github.com/$ORG/$REPO into $ROOT/$ORG/$REPO and cd into the directory.

Configuration

You only need to set PROJ_ROOT to your project root.

Kudos

I picked this idea up when I was working at segment, but we never got around to publishing it.

License

MIT