commit 4a44ec659bfae5c847df234add8ddfe8c38217b4
parent ec820d46153b6bd34db17fc80450493b9d1bc5af
Author: Daniel Moch <daniel@danielmoch.com>
Date: Sat, 21 Apr 2018 13:20:32 -0400
Add term window title for Posix shells
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/.profile b/.profile
@@ -5,7 +5,9 @@
if [ "$0" = "sh" -o "$0" = "-sh" ]
then
+ HOSTNAME=`hostname | cut -d . -f 1`
ENV="$HOME/.shrc"; export ENV
+ printf "\033]0;${USER}@${HOSTNAME}\007"
fi
if type vim > /dev/null 2>&1