Manually get the short hostname
GNU Coreutils 'hostname' does not support the -s flag.
This commit is contained in:
parent
8b83057e59
commit
241fb25409
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ unset _flatpak_xdg_path
|
||||||
|
|
||||||
# Basic exports.
|
# Basic exports.
|
||||||
export HISTFILE=""
|
export HISTFILE=""
|
||||||
export PS1="$(id -un)@$(hostname -s)\$ "
|
export PS1="$(id -un)@$(hostname | sed 's/\..*//')\$ "
|
||||||
export TIME_STYLE=long-iso # Used by GNU 'ls'.
|
export TIME_STYLE=long-iso # Used by GNU 'ls'.
|
||||||
|
|
||||||
# Bash-specific settings that will not work in other Bourne-compatible shells.
|
# Bash-specific settings that will not work in other Bourne-compatible shells.
|
||||||
|
|
Loading…
Reference in a new issue