Commit 8ba702eb authored by Nicolas Lenz's avatar Nicolas Lenz ❄️
Browse files

color updates

parent 948d2f33
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -16,12 +16,13 @@ PROMPT_CONNECTION=🌐 # Globe

# Colors
PROMPT_CTHEME=    # Theme color. Is set by prompt_set_themecolor.
PROMPT_CPATH=237  # Path background color
PROMPT_CFONT=15  # Font color
PROMPT_CFAIL=1  # Failure red
PROMPT_CCLEAN=243
PROMPT_CCHANGE=203
PROMPT_CSTAGED=177
PROMPT_CPROMPT=#da4e00  # Prompt symbol color
PROMPT_CPATH=#403854  # Path background color
PROMPT_CFONT=15  # Font color (white)
PROMPT_CFAIL=9  # Failure color (red)
PROMPT_CCLEAN=243  # VCS color, clean (gray)
PROMPT_CCHANGE=203  # VCS color, changed (light red)
PROMPT_CSTAGED=177  # VCS color, staged changes (light blue)

# Variables
PROMPT_EXIT=0
@@ -160,7 +161,7 @@ function prompt_vcs {
function lprompt_main {
    lprompt_seg prompt_exitcode $PROMPT_CFAIL
    lprompt_seg prompt_workdir $PROMPT_CPATH
    lprompt_seg prompt_symbol $PROMPT_CTHEME
    lprompt_seg prompt_symbol $PROMPT_CPROMPT
    lprompt_end
}

@@ -175,16 +176,15 @@ function rprompt_main {
# --- Misc functions ---

function welcome_message {
    lprompt_seg prompt_hello $PROMPT_CTHEME
    lprompt_seg prompt_hello $PROMPT_CPROMPT
    lprompt_end
    prompt_nametime
}

function prompt_set_themecolor {
    case $(cat /proc/sys/kernel/hostname) in
        melissa)  PROMPT_CTHEME=90;;   # Dark Purple
        miranda)  PROMPT_CTHEME=208;;  # Orange
        mabel)    PROMPT_CTHEME=133;;  # Pink
        melissa)  PROMPT_CTHEME=126;;   # Dark Pink
        miranda)  PROMPT_CTHEME=#e97300;;  # Orange
        sapphire) PROMPT_CTHEME=17;;   # Dark Blue
        ruby)     PROMPT_CTHEME=160;;  # Red
        obsidian) PROMPT_CTHEME=233;;  # Dark Gray