fixed ssh detection on el for powerline
This commit is contained in:
@@ -21,7 +21,7 @@ function __powerline_user_info_prompt {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [[ -n "${SSH_CLIENT}" ]]; then
|
if [[ -n "${SSH_CLIENT}" ]] || [[ -n "${SSH_CLIENT}" ]]; then
|
||||||
user_info="${USER_INFO_SSH_CHAR}${USER}@${HOSTNAME}"
|
user_info="${USER_INFO_SSH_CHAR}${USER}@${HOSTNAME}"
|
||||||
else
|
else
|
||||||
user_info="${USER}"
|
user_info="${USER}"
|
||||||
|
|||||||
Reference in New Issue
Block a user