Add -h/--help to session command
This commit is contained in:
parent
fb2d270e2d
commit
8ca2be7aa0
@ -1,6 +1,12 @@
|
|||||||
session() {
|
session() {
|
||||||
if [[ "$1" == "" ]]; then
|
if [[ "$1" == "" ]]; then
|
||||||
echo "usage: session <name> [<host>]"
|
echo "usage: session [-h] <name> [<host>]"
|
||||||
|
elif [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
|
||||||
|
echo "usage: session [-h] <name> [<host>]
|
||||||
|
|
||||||
|
Create or attach to a tmux session by name either locally on on a remote host
|
||||||
|
via ssh.
|
||||||
|
"
|
||||||
else
|
else
|
||||||
local name=$1
|
local name=$1
|
||||||
local host=$2
|
local host=$2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user