terminitor 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/terminitor/abstract_core.rb +1 -1
- data/lib/terminitor/version.rb +1 -1
- metadata +2 -2
@@ -42,10 +42,10 @@ module Terminitor
|
|
42
42
|
else
|
43
43
|
tab = ( tab_key == 'default' ? active_window : open_tab(tab_options) ) # give us the current window if its default, else open a tab.
|
44
44
|
end
|
45
|
+
tab_content[:commands].insert(0, window_content[:before]).flatten! if window_content[:before] # append our before block commands.
|
45
46
|
tab_content[:commands].insert(0, 'clear') if tab_name || !@working_dir.to_s.empty? # clean up prompt
|
46
47
|
tab_content[:commands].insert(0, "PS1=$PS1\"\\e]2;#{tab_name}\\a\"") if tab_name # add title to tab
|
47
48
|
tab_content[:commands].insert(0, "cd \"#{@working_dir}\"") unless @working_dir.to_s.empty?
|
48
|
-
tab_content[:commands].insert(0, window_content[:before]).flatten! if window_content[:before] # append our before block commands.
|
49
49
|
tab_content[:commands].each do |cmd|
|
50
50
|
execute_command(cmd, :in => tab)
|
51
51
|
end
|
data/lib/terminitor/version.rb
CHANGED