mottosso / be

minimal directory and environment management system for collaborative creative projects
GNU Lesser General Public License v2.1
47 stars 4 forks source link

be home #2

Closed mottosso closed 9 years ago

mottosso commented 9 years ago

Goal

cd into the current development directory

Implementation

@click.command()
def home():
    """Set the current working directory to the development directory

    TODO(marcus): Figure out how to send a "cd" to the calling process

    \b
    Usage:
        $ be in spiderman/peter/model
        $ pwd
        /projects
        $ be home
        $ pwd
        /projects/spiderman/assets/peter/model

    """

We'll need to find a way of making the child Python process execute a command in the parent shell, but I can't figure out how to do it..

mottosso commented 9 years ago

Implemented in 0.1.8, as an alias.