diff --git a/themes/kitsune/kitsune.theme.bash b/themes/kitsune/kitsune.theme.bash new file mode 100644 index 00000000..36cc0dbe --- /dev/null +++ b/themes/kitsune/kitsune.theme.bash @@ -0,0 +1,35 @@ +# This is modified morris theme for bash-it. I have changed only the way PS1 looks than in morris. +# prompt theming + +# added TITLEBAR for updating the tab and window titles with the pwd +case $TERM in + xterm*) + TITLEBAR=$(printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}") + ;; + screen) + TITLEBAR=$(printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}") + ;; + *) + TITLEBAR="" + ;; +esac +if [ "$?" == "0" ] +then + SC="${green}^_^"; +else + SC="${red}T_T"; +fi +BC=`battery_percentage` +function prompt_command() { + #PS1="${TITLEBAR}[\u@\h \W $(scm_prompt_info)]\$ " + PS1="\n${cyan}┌─${bold_white}[\u@\h]${cyan}─${bold_yellow}(\w)$(scm_prompt_info)\n${cyan}└─${bold_green}[\A]-${green}($BC%)${bold_cyan}-[${green}${bold_green}\$${bold_cyan}]${green} " +} + +# scm theming +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_PREFIX="${bold_cyan}(" +SCM_THEME_PROMPT_SUFFIX="${bold_cyan})${reset_color}" + + +safe_append_prompt_command prompt_command