aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/screen/screenrc.erb12
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/screen/screenrc.erb b/templates/screen/screenrc.erb
index 5196352..f10379c 100644
--- a/templates/screen/screenrc.erb
+++ b/templates/screen/screenrc.erb
@@ -127,14 +127,12 @@ bind ^] paste [.]
# screen -t local 0
# screen -t mail 1 elm
# screen -t 40 2 rlogin faui40
-<%- if windows != '' then -%>
-<%- windows.each do |line| -%>
-screen -t <%= line %>
-<%- end -%>
-<%- end -%>
-<%- if select != '' then -%>
+<% @windows.each do |window| -%>
+screen -t <%= window %>
+<% end -%>
+<% if select != '' then -%>
select <%= select %>
-<%- end -%>
+<% end -%>
# caption always "%3n %t%? @%u%?%? [%h]%?"
# hardstatus alwaysignore