Merge pull request #1091 from specter119/master
use $SHORT_HOSTNAME if set for powerline theme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user