Cleaned up git directory function
Sets clipboard to primary

Readded (accidentally removed) cursor centering