Monday, May 4, 2015

Managing Eagle Projects with Git

Here are the commands I use to manage my Git repositories for my Eagle projects.

PROJECT_REPO is an environment variable designating my repository URL or path.  

Each project starts as a branch from a root project with a blank board or branches from another project.

Start a new Eagle project
Current directory is an empty project working directory.
git init
git remote add origin $PROJECT_REPO
git pull
git checkout origin/master
git checkout -b BRANCH-NAME

Pull an Eagle project

Current directory is an empty project working directory. 
git init
git remote add origin $PROJECT_REPO
git pull
git checkout BRANCH-NAME

Create and push a new branch
Current directory is the current project working directory.
git checkout -b NEW_BRANCH_NAME 
... make changes and commit ...
git push origin NEW-BRANCH-NAME

Saturday, May 2, 2015

LibreOffice vs. the Liberty to Open the Application You Want

Occasionally LibreOffice seems determined to open PDF files with a web browser instead of the pertinent preferred application. Nosing around I learned that Libre/OpenOffice appears to be opening files thru /usr/bin/x-www-browser which links to /etc/alternatives/x-www-browser - a web browser startup script.

I instead linked /usr/bin/x-www-browser to /usr/bin/gnome-open which properly selects the gnome preferred application.