diff --git a/base/.profile b/base/.profile index 594ae5cf..82b181e9 100755 --- a/base/.profile +++ b/base/.profile @@ -328,9 +328,15 @@ _ps1bash() { # Add hostname prefix in SSH sessions unset _prefix + # Get the system hostname, using a util if one's available + if command -v hostname; then + _hostname="$(hostname -s)" + else + _hostname="$(