dockutil gives you more options. If you don't wanna use it, try this
↓Settings > Computer Management > Dock items > New >Go to PoliciesAdd
Dock items > Pick Shared from the list > Add
You can change the prefix however you like#!/bin/bash
serialNumber=$(system_profiler SPHardwareDataType | awk '/Serial/ {print
$4}') modelID=$(sysctl hw.model | awk '{print $NF}') case "$modelID" in
iMac*) modelPrefix="iMac" ;; MacBook*) modelPrefix=...