commit
057df5ea81
|
|
@ -270,6 +270,8 @@ _bash-it-reload() {
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
cd - &> /dev/null || return
|
||||||
}
|
}
|
||||||
|
|
||||||
_bash-it-describe ()
|
_bash-it-describe ()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function prompt_command() {
|
function prompt_command() {
|
||||||
PS1="${green}\u@\h $(clock_prompt) ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} ";
|
PS1="${green}\u@\h $(clock_prompt) ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} ${normal}";
|
||||||
}
|
}
|
||||||
|
|
||||||
THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$blue"}
|
THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$blue"}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
|
||||||
|
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
||||||
|
SCM_THEME_PROMPT_PREFIX=" ${green}| "
|
||||||
|
SCM_THEME_PROMPT_SUFFIX="${green} |"
|
||||||
|
SCM_NONE_CHAR='◐ '
|
||||||
|
SCM_GIT_SHOW_MINIMAL_INFO=true
|
||||||
|
GIT_THEME_PROMPT_DIRTY=" ${red}✗"
|
||||||
|
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
||||||
|
GIT_THEME_PROMPT_PREFIX=" ${green}|"
|
||||||
|
GIT_THEME_PROMPT_SUFFIX="${green}|"
|
||||||
|
|
||||||
|
RVM_THEME_PROMPT_PREFIX="|"
|
||||||
|
RVM_THEME_PROMPT_SUFFIX=" d|"
|
||||||
|
|
||||||
|
BOLD="\[\e[1m\]"
|
||||||
|
|
||||||
|
function prompt_command() {
|
||||||
|
PS1="\n${bold_cyan}$(scm_prompt_char_info) ${bold_cyan}\w :${reset_color}${normal}${BOLD} "
|
||||||
|
}
|
||||||
|
|
||||||
|
safe_append_prompt_command prompt_command
|
||||||
|
|
@ -46,11 +46,13 @@ function __powerline_prompt_command {
|
||||||
|
|
||||||
## right prompt ##
|
## right prompt ##
|
||||||
if [[ -n "${POWERLINE_RIGHT_PROMPT}" ]]; then
|
if [[ -n "${POWERLINE_RIGHT_PROMPT}" ]]; then
|
||||||
LEFT_PROMPT+="${move_cursor_rightmost}"
|
# LEFT_PROMPT+="${move_cursor_rightmost}"
|
||||||
for segment in $POWERLINE_RIGHT_PROMPT; do
|
for segment in $POWERLINE_RIGHT_PROMPT; do
|
||||||
local info="$(__powerline_${segment}_prompt)"
|
local info="$(__powerline_${segment}_prompt)"
|
||||||
[[ -n "${info}" ]] && __powerline_right_segment "${info}"
|
[[ -n "${info}" ]] && __powerline_right_segment "${info}"
|
||||||
done
|
done
|
||||||
|
RIGHT_PAD=$(printf "%.s " $(seq 1 $RIGHT_PROMPT_LENGTH))
|
||||||
|
LEFT_PROMPT+="${RIGHT_PAD}${move_cursor_rightmost}"
|
||||||
LEFT_PROMPT+="\033[${RIGHT_PROMPT_LENGTH}D"
|
LEFT_PROMPT+="\033[${RIGHT_PROMPT_LENGTH}D"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue