diff options
| author | jason | 2025-09-11 09:49:06 -0600 |
|---|---|---|
| committer | jason | 2025-09-11 09:49:06 -0600 |
| commit | 848a1c906947ad140da85edca18f43eb189fbdac (patch) | |
| tree | 6cf8f2d554b5c7b710f429c2ac8ae193f177f811 | |
| parent | ba35c5081c984a67b02ad1be628cdffdbc70ffd2 (diff) | |
| download | dotfiles-848a1c906947ad140da85edca18f43eb189fbdac.tar.gz dotfiles-848a1c906947ad140da85edca18f43eb189fbdac.zip | |
fix the color for local host prompt
| -rw-r--r-- | bash/.bashrc | 5 |
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 | |||
| 12 | LC_ALL="en_US.UTF-8" | 12 | LC_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 $ |
| 14 | if [ "$SESSION_TYPE" = "ssh" ]; then | 14 | if [ "$SESSION_TYPE" = "ssh" ]; then |
| 15 | echo "SSH" | ||
| 16 | HOST_COLOR="\[\e[38;5;124m\]" | 15 | HOST_COLOR="\[\e[38;5;124m\]" |
| 17 | else | 16 | else |
| 18 | echo "NON" | 17 | HOST_COLOR="\[\e[38;5;148m\]" |
| 19 | HOST_COLOR="\[\e[38;5;160m\]" | ||
| 20 | fi | 18 | fi |
| 21 | echo ${HOST_COLOR}asdf | ||
| 22 | 19 | ||
| 23 | PS1="[\u@${HOST_COLOR}\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]" | 20 | PS1="[\u@${HOST_COLOR}\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]" |
| 24 | END_PS1="\$\[\e[m\] " | 21 | END_PS1="\$\[\e[m\] " |