use $SHORT_HOSTNAME if set
change `${HOSTNAME}` to `${SHORT_HOSTNAME:=$HOSTNAME}`
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