#!/usr/bin/env zsh # author: Daniel Sommer # license: MIT # share zsh history setopt SHARE_HISTORY # exit if user is not root [[ "$EUID" != "0" ]] && return