fixed ssh detection on el for powerline

This commit is contained in:
Tim Noise
2017-01-30 05:39:57 +11:00
parent e8b130a277
commit 808b6bd253

View File

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