dotfiles

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

commit d56139570de51b802eb965b46b2a10ff64bae3aa
parent 19a1e617440647775897dcff6faa0846d64d78fa
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 22 Sep 2019 06:43:55 -0400

profile, shrc: Always print window title

The attempt to print a window title had, up until this point, only
occurred in profile, which means it only happened at login. This
approach does not make sense, since there is no guarantee that
profile is sourced in an interactive environment. This should
instead be done in shrc, when an actual, interactive shell is
started.

This commit makes that change.

Diffstat:
M.profile | 1-
M.shrc | 1+
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/.profile b/.profile @@ -7,7 +7,6 @@ if [ "$0" = "sh" -o "$0" = "-sh" ] then HOSTNAME=`hostname | cut -d . -f 1`; export HOSTNAME ENV="$HOME/.shrc"; export ENV - printf "\033]0;${LOGNAME}@${HOSTNAME}\007" fi if type ed > /dev/null 2>&1 diff --git a/.shrc b/.shrc @@ -5,6 +5,7 @@ [ -r "$HOME/.shrc.local" ] && . "$HOME/.shrc.local" set -o emacs +printf "\033]0;$LOGNAME@$HOSTNAME\007" __ps1() { echo -n $LOGNAME@$HOSTNAME: