From a3a3c4b6c79dd75dcc72ee5c9ba54a33d7f0f4cf Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 6 Mar 2022 23:00:12 +1100 Subject: [PATCH] bash: don't use hostname command --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 69754e6..361d97c 100644 --- a/.bashrc +++ b/.bashrc @@ -293,7 +293,7 @@ aliasf edit "$EDITOR" function print_title_prompt { printf '\e]0;bash:%s (%s)\a' \ "${PWD/$HOME/\~}" \ - "$(hostname -s)" + "$(cat /etc/hostname)" if [[ "$TERM" == screen* ]]; then printf '\ekbash\e\\' @@ -319,7 +319,7 @@ function print_title_exec { printf '\e]0;%s (%s)\a' \ "$(tr -cd '[:graph:] ' <<< "$BASH_COMMAND")" \ - "$(hostname -s)" + "$(cat /etc/hostname)" if [[ "$TERM" == screen* ]]; then printf '\ek%s\e\\' \ -- 2.39.2