Class: Tweemux::Action::Share

Inherits:
Tweemux::Action show all
Defined in:
lib/tweemux/action/share.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/share.rb', line 2

def run _
  chmod_a_rw = %w(chmod a+rw) + [Tweemux::SOCK]
  explained_run chmod_a_rw, 'makes the shared socket shareable'
  explained_run [ENV['SHELL']], 'only here to prevent the session from ending'
end