aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-03-01 00:24:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-03-01 00:24:23 +1300
commit85d8147b182411641cf48fa8f267bbc90c1b6d7f (patch)
treed5f3310f95bbb5137f43d4829387bc893bca10ba
parentRemove incompatible lines for alert windows. (diff)
downloaddotfiles-85d8147b182411641cf48fa8f267bbc90c1b6d7f.tar.gz
dotfiles-85d8147b182411641cf48fa8f267bbc90c1b6d7f.zip
Use more compact window titles.
Consistent with original tmux layout.
-rw-r--r--tmux/tmux.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index 54ad7431..367b548a 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -92,8 +92,8 @@ set-option -g message-bg colour18
set-window-option -g mode-keys vi
# Use two-space separators, and forget the status indicator.
-set-window-option -g window-status-format "#[fg=colour16]#I #W#F "
-set-window-option -g window-status-current-format "#[fg=colour231]#I #W#F "
+set-window-option -g window-status-format "#[fg=colour16]#I:#W#F"
+set-window-option -g window-status-current-format "#[fg=colour231]#I:#W#F"
# Set colours for choosing dialogs.
set-window-option -g mode-fg colour231
nt-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Repeat a command to filter input several times
self=chn

# Check arguments.
if [ "$#" -lt 2 ] ; then
    printf >&2 '%s: Need a count and a program name\n' "$self"
    exit 2
fi

# Shift off the repetition count.
c=$1
shift

# Check the repetition count looks sane.  Zero is fine!
if [ "$c" -lt 0 ] ; then
    printf >&2 '%s: Nonsensical negative count\n' "$self"
    exit 2
fi

# If the count is zero, just run the input straight through!
if [ "$c" -eq 0 ] ; then
    cat
    exit
fi

<%
include(`include/mktd.m4')
%>

# Define and create input and output files
if=$td/if of=$td/of
touch -- "$if" "$of"

# Iterate through the count
while [ "${n=1}" -le "$c" ] ; do

    # Start a subshell so we can deal with FDs cleanly
    (
        # If this isn't the first iteration, our input comes from $if
        [ "$n" -eq 1 ] ||
            exec <"$if"

        # If this isn't the last iteration, our output goes to $of
        [ "$n" -eq "$c" ] ||
            exec >"$of"

        # Run the command with the descriptors above; if the command fails, the
        # subshell will exit, which will in turn exit the program
        "$@"
    ) || exit

    # Copy the output file over the input one
    cp -- "$of" "$if"

    # Increment the counter for the next while loop run
    n=$((n+1))
done