diff options
Diffstat (limited to '')
-rw-r--r-- | bashrc/common/prompt.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bashrc/common/prompt.sh b/bashrc/common/prompt.sh index 86f6919..c85f62b 100644 --- a/bashrc/common/prompt.sh +++ b/bashrc/common/prompt.sh @@ -99,7 +99,8 @@ __make_prompt() { export PS1="${PS1UH} ${PS1BO}${PS1R}${PS1F}${PS1BC} ${PS1D} ${s}${PS1P}" if [[ "${TERM#screen}" != "${TERM}" ]]; then - echo -ne "\ek$(id -un)@$(hostname)\e\\" + _hostname=$(hostname) + echo -ne "\ek$(id -un)@${_hostname%%\.*}\e\\" fi } |