Category Archives: Tools

Git terminal prompt on a mac

Assuming you’re setting up on a shiny new mac, here is how you can add the git branch to the command prompt:

Grab these files and add them to the ~/ folder

Also then add a .bash_profile to that folder, easiest way is to open the terminal at that folder then use the touch command:

touch .bash_profile

Then add these lines to the file:

source ~/.git-completion.bash
source ~/
export PS1='[\W$(__git_ps1 ” (%s)”)]\$ ‘

Restart the terminal and you’re done!

Off screen windows on a mac

Photoshop is a nightmare for this.

In the office, I connect my¬†macbook pro to a cinema display but not at home. Switching between dual and single displays seems to cause some software – especially photoshop, filezilla and excel – to move their windows off screen. You can’t grab them to move them around so they are stuck out of reach.

There are some fixes for this.

Option + drag
If you can grab the edge of the application you can hit option and drag. This will resize both sides at once and might be enough to get things back into view.

Download Spectacle
Spectacle is a handy, open source app which lets you resize windows using keyboard shortcuts. I recommend running it in the status menu (this option can be set by pressing the ‘ > ‘ bottom right) at startup. If the keyboard shortcut doesn’t work then you can access the resize options from the spectacle icon in the status bar.

Spectacle is good – especially for a free app but if you want more, try SizeUp, its not free but it is cheap and adds things like padding to avoid shadow overlap.


If you are running low on storage space on an ipad or iphone and you have a huge amount of space being taken up by “other” files (shown in itunes summary) then this handy – and free – tool will clean it up

I had 1.9GB being taken up by ‘other’ files and had zero bytes of storage space, this software cleaned 1GB of logs and other crap.

Highly recommended.

Terminal – sublime text 3

Git is great but I favour the terminal rather than an app to manage repos which leaves me with the need to open terminals in the correct folder or spend valuable seconds on typing the path to the project.

I do have a way to open a new terminal from a folder but that means having to open finder, go to the project, right click and open the terminal. That can also be painful.

I work in sublime text all the time so wouldn’t it be handy to have a way to open terminals from there? Well, i just found a nice little package to do exactly that:

I had tried glue ( but thats not so good when running gulp and i’d like to use the up arrow to go back to previous commands. There’s nothing like running the actual terminal and now i have a way to quickly launch it. Just right click the folder your repo is in and ‘open terminal here…’