You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
772 B

#!/bin/sh
##
## tmux-session -- simple tmux(1) multi-user session establishment
## Copyright (c) 2015 Ralf S. Engelschall <rse@engelschall.com>
## Licensed under MIT License
##
if [ $# -ne 1 ]; then
echo "tmux-session:ERROR: invalid arguments" 1>&2
echo "tmux-session:USAGE: tmux-session <name>" 1>&2
exit 1
fi
session="$1"; shift
exec @l_prefix@/bin/tmux new-session -A -s "$session"
=pod
=head1 NAME
B<tmux-session> -- easy tmux(1) multi-user session establishment
=head1 SYNOPSIS
B<tmux-session> I<session-name>
=head1 DESCRIPTION
B<tmux-session> is a trivial wrapper for tmux(1) for establishing
a multi-user session. The idea is that multiple people log into the
same Unix account and all run C<tmux-session> to connect to each other.
=cut