Manually get the short hostname

GNU Coreutils 'hostname' does not support the -s flag.
This commit is contained in:
Anthony Rose 2024-10-11 19:51:46 +01:00
parent 8b83057e59
commit 241fb25409

View file

@ -81,7 +81,7 @@ unset _flatpak_xdg_path
# Basic exports.
export HISTFILE=""
export PS1="$(id -un)@$(hostname -s)\$ "
export PS1="$(id -un)@$(hostname | sed 's/\..*//')\$ "
export TIME_STYLE=long-iso # Used by GNU 'ls'.
# Bash-specific settings that will not work in other Bourne-compatible shells.