Merge pull request #1091 from specter119/master

use $SHORT_HOSTNAME if set for powerline theme
This commit is contained in:
Nils Winkler
2017-11-17 06:25:54 -06:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ function __powerline_user_info_prompt {
;;
*)
if [[ -n "${SSH_CLIENT}" ]]; then
user_info="${USER_INFO_SSH_CHAR}${USER}@${HOSTNAME}"
user_info="${USER_INFO_SSH_CHAR}${USER}@${SHORT_HOSTNAME:=$HOSTNAME}"
else
user_info="${USER}"
fi