From 8ca2be7aa07dfc6ce29e8f7c381b69b06af79fdc Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 1 Jul 2025 12:44:32 +0100 Subject: [PATCH] Add -h/--help to session command --- session/session.plugin.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/session/session.plugin.zsh b/session/session.plugin.zsh index 9c099ea..658b21f 100644 --- a/session/session.plugin.zsh +++ b/session/session.plugin.zsh @@ -1,6 +1,12 @@ session() { if [[ "$1" == "" ]]; then - echo "usage: session []" + echo "usage: session [-h] []" + elif [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then + echo "usage: session [-h] [] + +Create or attach to a tmux session by name either locally on on a remote host +via ssh. +" else local name=$1 local host=$2