Sublime Text Installation, Debian with Plank

This is a guide showing how to install Sublime Text from the Sublime debian repo and then what to do to ensure you can pin it to Plank dock (could well be required for other docks like Docky too).
Install sublime from the repo (sublimes docs on install https://www.sublimetext.com/docs/3/linux_repositories.html)

I’m running a minimal system to had to install apt-transport-https as a prerequisite for the Sublime repo.

Get the sublime repo public key

Create the repo in your /etc/apt/source.list.d directory

Create a symbolic link to the sublime binary  called “sublime” in /usr/bin

Edit the existing icon properties file for sublime (necessary to allow it to be pinned to the dock in Plank)

Update ‘Exec’ paths to be “sublime”.  Below is my finished /usr/share/applications/sublime_text.desktop file

You should now be instantly able to ‘keep in dock’ in Plank when Sublime is running now.