From 6322791742b2feca968cecf66a637a356f8dea58 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 5 Dec 2013 01:58:56 +0900 Subject: [PATCH] use commands instead of environment variable to get user and host name --- shrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shrc b/shrc index 8db5124..709d5ff 100755 --- a/shrc +++ b/shrc @@ -1264,13 +1264,13 @@ case "$TERM" in screen*) if test -n "$SSH_CONNECTION" then - __terminal_title="\${USER}@\${HOSTNAME}:\$(basename \${PWD})" + __terminal_title="`whoami`@`hostname`:\$(basename \${PWD})" else __terminal_title="\$(basename \${PWD})" fi ;; *) - __terminal_title="\${USER}@\${HOSTNAME}:\${PWD}" + __terminal_title="`whoami`@`hostname`:\${PWD}" ;; esac