The main objective of this paper is to provide a theory for computing the Hochschild cohomology of algebras arising from a linear category with finitely many objects and zero compositions. For this purpose, we consider such a category using an ad hoc quiver Q, with an algebra associated to each vertex and a bimodule to each arrow. The computation relies on cohomological functors that we introduce, and on the combinatorics of the quiver. One point extensions are occurrences of this situation, and Happel’s long exact sequence is a particular case of the long exact sequence of cohomology that we obtain via the study of trajectories of the quiver. We introduce cohomology along paths, and we compute it under suitable Tor vanishing hypotheses. Th...