i am bad at git
parent
0eb02456e2
commit
54d6a10601
|
|
@ -90,19 +90,16 @@ function __powerline_cwd_prompt {
|
||||||
#if [[ -n "${CWD_THEME_DIR_SEPARATOR}" ]]; then
|
#if [[ -n "${CWD_THEME_DIR_SEPARATOR}" ]]; then
|
||||||
# todo
|
# todo
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
echo "${cwd}|${CWD_THEME_PROMPT_COLOR}"
|
echo "${cwd}|${CWD_THEME_PROMPT_COLOR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function __powerline_hostname_prompt {
|
function __powerline_hostname_prompt {
|
||||||
echo "$(hostname -s)|${HOST_THEME_PROMPT_COLOR}"
|
echo "$(hostname -s)|${HOST_THEME_PROMPT_COLOR}"
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function __powerline_wd_prompt {
|
function __powerline_wd_prompt {
|
||||||
echo "\W|${CWD_THEME_PROMPT_COLOR}"
|
echo "\W|${CWD_THEME_PROMPT_COLOR}"
|
||||||
>>>>>>> master
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function __powerline_clock_prompt {
|
function __powerline_clock_prompt {
|
||||||
|
|
@ -166,22 +163,12 @@ function __powerline_prompt_command {
|
||||||
LEFT_PROMPT+="$(set_color ${PROMPT_DISTRO_LOGO_COLOR} ${PROMPT_DISTRO_LOGO_COLORBG})${PROMPT_DISTRO_LOGO}$(set_color - -)"
|
LEFT_PROMPT+="$(set_color ${PROMPT_DISTRO_LOGO_COLOR} ${PROMPT_DISTRO_LOGO_COLORBG})${PROMPT_DISTRO_LOGO}$(set_color - -)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
local OLD_IFS="${IFS}"; IFS=" "
|
|
||||||
|
|
||||||
>>>>>>> master
|
|
||||||
## left prompt ##
|
## left prompt ##
|
||||||
for segment in $POWERLINE_PROMPT; do
|
for segment in $POWERLINE_PROMPT; do
|
||||||
local info="$(__powerline_${segment}_prompt)"
|
local info="$(__powerline_${segment}_prompt)"
|
||||||
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
|
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
|
||||||
done
|
done
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
IFS="${OLD_IFS}"
|
|
||||||
|
|
||||||
>>>>>>> master
|
|
||||||
[[ "${last_status}" -ne 0 ]] && __powerline_left_segment $(__powerline_last_status_prompt ${last_status})
|
[[ "${last_status}" -ne 0 ]] && __powerline_left_segment $(__powerline_last_status_prompt ${last_status})
|
||||||
[[ -n "${LEFT_PROMPT}" ]] && LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -)${separator_char}${normal}"
|
[[ -n "${LEFT_PROMPT}" ]] && LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -)${separator_char}${normal}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue