Add spacer to your OSX dock

First creat the alias:

$ alias addspacer2dock="defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && killall Dock"


Then with the following command you add a space on your dock:

$ addspacer2dock