dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit f0f2d50cc7b95ff6cf2a7ddaeba4e4149525cc12
parent 5c838ccaf719c44e068ae6e5e41320fb2cf4effb
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 14 Jan 2018 21:55:10 -0500

Add my-init script with terminfo customizations

The script will contain any run-once sort of initializations I might
need when I'm standing up an account on a new machine.

The terminfo customizations pertain primarily to tmux, where I set
'flash' (the visual bell entry) to be the same as 'bel' (the audio bell
entry). I do this because I try to use a visual bell whenever possible,
and Tmux doesn't seem to meaningfully respond to it. This customization
makes programs send the audio bell, which I've configured within Tmux to
respond to with a visual message.

Diffstat:
A.config/terminfo/tmux-from-screen.terminfo | 7+++++++
M.config/terminfo/tmux.terminfo | 4++--
A.local/bin/my-init | 15+++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/.config/terminfo/tmux-from-screen.terminfo b/.config/terminfo/tmux-from-screen.terminfo @@ -0,0 +1,7 @@ +xterm-256color|xterm with italics support, + ritm=\E[23m, sitm=\E[3m, + use=xterm-256color, + +tmux-256color|tmux with 256 colors, + ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, flash=^G, + use=screen-256color, diff --git a/.config/terminfo/tmux.terminfo b/.config/terminfo/tmux.terminfo @@ -3,5 +3,5 @@ xterm-256color|xterm with italics support, use=xterm-256color, tmux-256color|tmux with 256 colors, - ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, - use=screen-256color, + ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, flash=^G, + use=tmux-256color, diff --git a/.local/bin/my-init b/.local/bin/my-init @@ -0,0 +1,15 @@ +#!/bin/sh +# +# ~/.local/bin/my-init +# +# A place to dump run-once type initializations + +if [ ! -d "$HOME/.terminfo" ] +then + if infocmp tmux-256color > /dev/null 2>&1 + then + tic "$HOME/.config/terminfo/tmux.terminfo" + else + tic "$HOME/.config/terminfo/tmux-from-screen.terminfo" + fi +fi