From cb8596cddf087227d468d145c5890a829682aa3d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 24 Mar 2020 15:03:31 +1300 Subject: [PATCH] fall back to python uuid gen --- .bin/tmux | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bin/tmux b/.bin/tmux index d6ff4b2..3fc4b4f 100755 --- a/.bin/tmux +++ b/.bin/tmux @@ -41,6 +41,9 @@ fi # only without argument create a new session with a random name/id to which we # can then attach +if ! command -v uuidgen >/dev/null; then + uuidgen() { python3 -c 'import uuid; print(uuid.uuid1())'; } +fi UUID=$(uuidgen) echo "$UUID" > $LASTSESSIONIDFILE -- 2.39.5