Class: Tweemux::Action::Host

Inherits:
Tweemux::Action show all
Defined in:
lib/tweemux/action/host.rb

Instance Method Summary collapse

Methods inherited from Tweemux::Action

#call, colorize_tmux_command, explain, #explained_run, explained_run, #explained_run_as, explained_run_as, highlight_command, highlight_explanation, #initialize, load_all!, pseudo_restarts, system_or_raise, tmux_S, #tmux_S

Constructor Details

This class inherits a constructor from Tweemux::Action

Instance Method Details

#run(_) ⇒ Object



2
3
4
5
6
# File 'lib/tweemux/action/host.rb', line 2

def run _
  tmux_S %w'start-server', 'brings up the tmux process'
  tmux_S ['new', 'tweemux share'],
    "starts sesssion '0', repermissionizes, then runs '#{ENV['SHELL']}'"
end