Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

NY Stand-up: Gonna Get Down on Friday the 13th

Jonathan Berger
Friday, May 13, 2011

Interesting

Kris Hicks reassures us that the vim path through git interactive rebases need not lead to maddness. If you’d like to do an interactive rebase in your editor of choice (rather than Textmate, the Pivotal default) you can set the GIT_EDITOR flag. So go ahead to the terminal and

export GIT_EDITOR=vim && git rebase -i origin/master

Vim will launch, changes will be made, commits will be squashed, and all will be right with the world. Until you try to save; after making your changes and :wq-ing, the terminal will admonish you Could not execute editor.

The problem is a vi + Mac OS X + git incompatibility with pathogen (the vim package manager). To fix it, add the following lines to your .vimrc file:

filetype on
filetype off
...pathogen crap...
filetype on

For more on this issue, see http://andrewho.co.uk/weblog/vim-pathogen-with-mutt-and-git

Dangerous

Rayban reminds us that you best yield before you exit the block.

For example:

around_save :check_something, :if => "my_attribute_changed?"

def check_something
  return unless my_attribute == "foo"
  yield
  # do some stuff...
end

will not save unless my_attribute == "foo"— if your condition to run the around filter rarely happens you might not notice this fairly obvious behavior and be confused confused confused.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Jonathan Berger

Jonathan Berger
New York

Recent Posts

  • 7 Best Practices for Facilitating Agile Retrospectives
  • Set your sights on the next Milestone with an Idea Board
  • What’s (not) in a Name
Subscribe to Jonathan's Feed

Author Topics

agile (8)
agile retrospective (1)
ironblogger (7)
process (3)
retros (1)
retrospective (1)
epics (1)
pivotal tracker (2)
design (10)
estimation (1)
productivity (1)
sustainable pace (2)
ergonomics (1)
health (1)
refactoring (1)
accessibility (2)
hacks (1)
research (1)
convention over configuration (1)
cucumber (1)
speaking (1)
text-editors (1)
mobile (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >