Change rules size only on SIGWINCH.
$COLUMNS isn't updated on SIGWINCH yet so "tput" is used.
For better performance ruler is calculated by substring.
Moving ruler handler to trap cleans console from garbage when "set -x" is set
in interactive session. It is useful during debugging of bash completion.
# -*- mode: sh -*-
if [[ -f $HOME/.bashrc ]]; then
. $HOME/.bashrc
fi
# TIP: MC command start with space.
export HISTIGNORE=$HISTIGNORE:" *"