terminitor 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Terminitor
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arthur Chiu