Yes that is exactly what I was doing.
Works like a charm. I eventually stole the line from your dotfiles