Skip to content

Commit

Permalink
style(themes/powerline-icon): fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 10, 2024
1 parent 45673a8 commit 2428b27
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions themes/powerline-icon/powerline-icon.base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ function __powerline_user_info_prompt {
fi
fi
case "${POWERLINE_PROMPT_USER_INFO_MODE}" in
"sudo")
if [[ "${color}" == "${USER_INFO_THEME_PROMPT_COLOR_SUDO}" ]]; then
user_info="!"
fi
;;
*)
if [[ -n "${SSH_CLIENT}" ]]; then
user_info="${USER_INFO_SSH_CHAR}${USER}@${HOSTNAME}"
else
user_info="${USER}"
fi
;;
"sudo")
if [[ "${color}" == "${USER_INFO_THEME_PROMPT_COLOR_SUDO}" ]]; then
user_info="!"
fi
;;
*)
if [[ -n "${SSH_CLIENT}" ]]; then
user_info="${USER_INFO_SSH_CHAR}${USER}@${HOSTNAME}"
else
user_info="${USER}"
fi
;;
esac
if [[ -n "${user_info}" ]]; then
local clock=$(date +"${OMB_THEME_POWERLINE_ICON_CLOCK-%X %D}")
Expand Down

0 comments on commit 2428b27

Please sign in to comment.