Do not rename a session if no name is provided
This commit is contained in:
parent
8ae45f570e
commit
caec6a2d96
@ -19,7 +19,7 @@ module Teamocil
|
|||||||
if @layout["session"].nil?
|
if @layout["session"].nil?
|
||||||
windows = @layout["windows"]
|
windows = @layout["windows"]
|
||||||
else
|
else
|
||||||
output << "tmux rename-session #{@layout["session"]["name"]}"
|
output << "tmux rename-session #{@layout["session"]["name"]}" if @layout["session"]["name"]
|
||||||
windows = @layout["session"]["windows"]
|
windows = @layout["session"]["windows"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user