aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2025-09-11 09:49:06 -0600
committerjason2025-09-11 09:49:06 -0600
commit848a1c906947ad140da85edca18f43eb189fbdac (patch)
tree6cf8f2d554b5c7b710f429c2ac8ae193f177f811
parentba35c5081c984a67b02ad1be628cdffdbc70ffd2 (diff)
downloaddotfiles-848a1c906947ad140da85edca18f43eb189fbdac.tar.gz
dotfiles-848a1c906947ad140da85edca18f43eb189fbdac.zip
fix the color for local host prompt
-rw-r--r--bash/.bashrc5
1 files changed, 1 insertions, 4 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 5d0b2c5..e8ff0a6 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -12,13 +12,10 @@ fi
12LC_ALL="en_US.UTF-8" 12LC_ALL="en_US.UTF-8"
13# This PS1 is completed at the end, allowing statuses to be included between the directory and closing $ 13# This PS1 is completed at the end, allowing statuses to be included between the directory and closing $
14if [ "$SESSION_TYPE" = "ssh" ]; then 14if [ "$SESSION_TYPE" = "ssh" ]; then
15 echo "SSH"
16 HOST_COLOR="\[\e[38;5;124m\]" 15 HOST_COLOR="\[\e[38;5;124m\]"
17else 16else
18 echo "NON" 17 HOST_COLOR="\[\e[38;5;148m\]"
19 HOST_COLOR="\[\e[38;5;160m\]"
20fi 18fi
21echo ${HOST_COLOR}asdf
22 19
23PS1="[\u@${HOST_COLOR}\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]" 20PS1="[\u@${HOST_COLOR}\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]"
24END_PS1="\$\[\e[m\] " 21END_PS1="\$\[\e[m\] "