Merge pull request #1091 from specter119/master

use $SHORT_HOSTNAME if set for powerline theme
pull/226/merge
Nils Winkler 2017-11-17 06:25:54 -06:00 committed by GitHub
commit 76e4659126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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