Skip to content

joaovfsousa/gwtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GWTree

Build instructions

MacOS

go build && mv gwtree /usr/local/bin

To enable worktree switching, add this to your shell rc file(e.g. ~/.bashrc)

function gwt {
    export GWT_NEW_DIR_FILE=~/.gwt/newdir

    gwtree "$@"

    if [ -f $GWT_NEW_DIR_FILE ]; then
      cd "$(cat $GWT_NEW_DIR_FILE)"
      rm -f $GWT_NEW_DIR_FILE > /dev/null
    fi
}

References

Thirdparty licenses

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages