Module: Lab42::Tmux::Commands
- Included in:
- Lab42::Tmux
- Defined in:
- lib/lab42/tmux/commands.rb
Instance Attribute Summary collapse
-
#window_count ⇒ Object
Returns the value of attribute window_count.
Instance Method Summary collapse
Instance Attribute Details
#window_count ⇒ Object
Returns the value of attribute window_count.
4 5 6 |
# File 'lib/lab42/tmux/commands.rb', line 4 def window_count @window_count end |
Instance Method Details
#lprefix(cmd, prefix = " ") ⇒ Object
11 12 13 |
# File 'lib/lab42/tmux/commands.rb', line 11 def lprefix cmd, prefix=" " cmd ? "#{prefix}#{cmd}" : "" end |
#tmux(cmd) ⇒ Object
5 |
# File 'lib/lab42/tmux/commands.rb', line 5 def tmux cmd; commands << "tmux #{cmd}" end |
#tmux_source_file ⇒ Object
7 8 9 |
# File 'lib/lab42/tmux/commands.rb', line 7 def tmux_source_file tmux "source-file #{.source_file || File.join( ENV["HOME"], ".tmux.conf" )}" end |