Aisle/Tips

From MozillaWiki
Jump to: navigation, search

Use c9 to view a diff, and to edit commit messages:

   export TMPDIR=~/tmp
   export EDITOR="c9 open --wait"
   
   alias hgd='fn() {
       hg diff > $TMPDIR/temphg.diff;
       c9 open --wait $TMPDIR/temphg.diff;
   } ;fn'

The code can be added to ~/.bash_profile and it's needed since c9 is unable to access files outside of the home or workspace folders.