From 4fcea2d5892bd68c04b9d50d64eac3530cc24577 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 10 Aug 2025 12:07:49 -0700 Subject: [PATCH 1/2] Jade and Cinnabar --- hostname/cinnabar.sh | 13 +++++++++++++ hostname/jade.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 hostname/cinnabar.sh create mode 100644 hostname/jade.sh diff --git a/hostname/cinnabar.sh b/hostname/cinnabar.sh new file mode 100644 index 0000000..ca6f5c5 --- /dev/null +++ b/hostname/cinnabar.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +COLOR_RST='\[\e[39m\]' +ULINE='\[\e[4m\]' +ULINE_RST='\[\e[24m\]' + +COLOR_NORM='\[\e[38;2;227;66;52m\]' # Cinnabar +alt_hostname="${COLOR_NORM}${ULINE}シンシャー${COLOR_RST}${ULINE_RST}" + +export PS1="\[\e[01;32m\]\u\[\e[00m\]@\[\e[01;32m\]${alt_hostname}" +export PS1+="\[\e[01;34m\] \w \\$\[\e[00m\] " + +unset $alt_hostname $COLOR_NORM $ULINE $ULINE_RST $COLOR_RST diff --git a/hostname/jade.sh b/hostname/jade.sh new file mode 100644 index 0000000..57843fa --- /dev/null +++ b/hostname/jade.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +COLOR_RST='\[\e[39m\]' +ULINE='\[\e[4m\]' +ULINE_RST='\[\e[24m\]' + +COLOR_NORM='\[\e[38;2;0;168;107m\]' # Jade +alt_hostname="${COLOR_NORM}${ULINE}ジェード${COLOR_RST}${ULINE_RST}" + +export PS1="\[\e[01;32m\]\u\[\e[00m\]@\[\e[01;32m\]${alt_hostname}" +export PS1+="\[\e[01;34m\] \w \\$\[\e[00m\] " + +unset $alt_hostname $COLOR_NORM $ULINE $ULINE_RST $COLOR_RST From 2f37ec5534df1533a01d000a619c3ec37eb55282 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 10 Aug 2025 12:11:48 -0700 Subject: [PATCH 2/2] Corrected bug in reloader logic --- 0-builder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/0-builder b/0-builder index ea0a478..4060d5f 100644 --- a/0-builder +++ b/0-builder @@ -76,9 +76,9 @@ function __rebuild_bashrcd() { fi } -function __bashrc_reload() { - export BASHRC_RELOAD_COUNTER=$((${BASHRC_RELOAD_COUNTER:-0}+1)) - if [[ $BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: $BASHRC_RELOAD_COUNTER"; fi +function -reload-bashrc() { + export BASHRC_RELOAD_COUNTER=\$((\${BASHRC_RELOAD_COUNTER:-0}+1)) + if [[ \$BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: \$BASHRC_RELOAD_COUNTER"; fi source ~/.bashrc } alias __bashrc_reload='-reload-bashrc'