start new:
tmux
start new with session name:
tmux new -s myname
| # Default termtype. If the rcfile sets $TERM, that overrides this value. | |
| set -g default-terminal screen-256color | |
| # support logging out and back in | |
| set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
| # pbcopy support | |
| set-option -g default-command "reattach-to-user-namespace -l bash" | |
| # vi mode |
| defmodule ExampleGenServer do | |
| ## Client API | |
| use GenServer | |
| # Starts detached process of GenServer | |
| def start_link do | |
| # Fisrt arg is a GenServer's module name, second one is its initial state and/or its type | |
| # Name of a process can be specified (name: :name) but it also prevents of running multiple process of the same type |