start new:
tmux
start new with session name:
tmux new -s myname
| -- Assign an empty table to the local variable named M (it's standard to name the variable as "M") | |
| local M = {} | |
| -- Define your function & add it the M table | |
| function M.do_something() | |
| -- Your functional logic | |
| end | |
| -- Since the M table is scoped, it has to be returned for usage elsewhere | |
| return M |