Commit 6afdc0df authored by Nicolas Lenz's avatar Nicolas Lenz ❄️
Browse files

color rechange

parent 56ece1d9
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -16,8 +16,7 @@ PROMPT_CONNECTION=🌐 # Globe

# Colors
PROMPT_CTHEME=    # Theme color. Is set by prompt_set_themecolor.
PROMPT_CPROMPT=#da4e00  # Prompt symbol color
PROMPT_CPATH=#403854  # Path background color
PROMPT_CPATH=#404040  # Path background color
PROMPT_CFONT=15  # Font color (white)
PROMPT_CFAIL=9  # Failure color (red)
PROMPT_CCLEAN=243  # VCS color, clean (gray)
@@ -161,7 +160,7 @@ function prompt_vcs {
function lprompt_main {
    lprompt_seg prompt_exitcode $PROMPT_CFAIL
    lprompt_seg prompt_workdir $PROMPT_CPATH
    lprompt_seg prompt_symbol $PROMPT_CPROMPT
    lprompt_seg prompt_symbol $PROMPT_CTHEME
    lprompt_end
}

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

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

function prompt_set_themecolor {
    case $(cat /proc/sys/kernel/hostname) in
        melissa)  PROMPT_CTHEME=126;;   # Dark Pink
        melissa)  PROMPT_CTHEME=#cc068e;;   # Dark Pink
        miranda)  PROMPT_CTHEME=#e97300;;  # Orange
        sapphire) PROMPT_CTHEME=17;;   # Dark Blue
        sapphire) PROMPT_CTHEME=#102298;;   # Dark Blue
        ruby)     PROMPT_CTHEME=160;;  # Red
        obsidian) PROMPT_CTHEME=233;;  # Dark Gray
        *)        PROMPT_CTHEME=242;;  # Gray