summaryrefslogtreecommitdiffstats
path: root/bashrc/common/screen.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bashrc/common/screen.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bashrc/common/screen.sh b/bashrc/common/screen.sh
index 6dbda21..72bc13d 100644
--- a/bashrc/common/screen.sh
+++ b/bashrc/common/screen.sh
@@ -3,7 +3,8 @@
set_screen_title() {
# prevent reset_screen_title from calling set_screen_title
if [[ $BASH_COMMAND != "__make_prompt" ]]; then
- echo -ne "\ek$(id -un)@$(hostname):${BASH_COMMAND/ *}\e\\"
+ _hostname=$(hostname)
+ echo -ne "\ek$(id -un)@${_hostname%%\.*}:${BASH_COMMAND/ *}\e\\"
fi
}