Also add new script remove-continuation.pl which performs this change.
Older Tmux versions don't support line continuation.
Adapt setup.sh to generate tmux.conf from tmux.conf.in.
# Ignore generated files.
/htoprc
/screenrc
+/tmux.conf
# Ignore temporary zsh files.
/zsh/cache
/zsh/history*
--- /dev/null
+#!/usr/bin/perl
+
+# Remove continuation lines from stdin/file. Leading whitespace on the next
+# line is removed.
+
+# Copyright (C) 2012 Simon Ruderich
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+use strict;
+use warnings;
+
+
+my $continuation = 0;
+while (my $line = <>) {
+ # Remove leading whitespace if the last line was a line continuation.
+ if ($continuation) {
+ $line =~ s/^\s+//;
+ }
+
+ if ($line =~ /^(.+?)\\$/) {
+ print $1;
+ $continuation = 1;
+ } else {
+ print $line;
+ $continuation = 0;
+ }
+}
+# Handle line continuation on the last line.
+print "\n" if $continuation;
link inputrc ~/.inputrc
link screenrc ~/.screenrc
if installed tmux; then
+ generate perl tmux.conf ./bin/remove-continuation.pl
link tmux.conf ~/.tmux.conf
fi
if installed htop; then
# Nothing left of window list.
set-option -g status-left ""
# Current load average and hostname on the right.
-set-option -g status-right "#(uptime | sed 's/^.*load averages*: //; s/,//g') #H"
+set-option -g status-right "#(uptime | sed 's/^.*load averages*: //; s/,//g') \
+ #H"
# Format for windows in the window list in the status line. #I window index,
# #W window number, #F window flags.
# Run urlview on the current screen content. Very useful to follow links.
# Thanks to Arch wiki (https://wiki.archlinux.org/index.php/Tmux) for the
# basic idea.
-bind-key C-b capture-pane \; save-buffer ~/.tmp/tmux-urlview \; new-window "$SHELL -c 'urlview < ~/.tmp/tmux-urlview'"
+bind-key C-b capture-pane \; \
+ save-buffer ~/.tmp/tmux-urlview \; \
+ new-window "$SHELL -c 'urlview < ~/.tmp/tmux-urlview'"
# vim: ft=tmux