@@ -7,7 +7,7 @@ if [ "${LIMA_CIDATA_NAME}" = "default" ] && command -v patch >/dev/null 2>&1 &&
7
7
8
8
! grep -q " ^# Lima PS1" " ${LIMA_CIDATA_HOME} /.bashrc" || exit 0
9
9
10
- # Change the default shell prompt from "green" to "lime" (#BFFF00 )
10
+ # Change the default shell prompt from "green" to "lime green " (#32CD32 )
11
11
12
12
patch --forward -r - " ${LIMA_CIDATA_HOME} /.bashrc" << 'EOF '
13
13
@@ -37,7 +37,11 @@
@@ -23,23 +23,20 @@ if [ "${LIMA_CIDATA_NAME}" = "default" ] && command -v patch >/dev/null 2>&1 &&
23
23
esac
24
24
25
25
# uncomment for a colored prompt, if the terminal has the capability; turned
26
- @@ -56,8 +60,13 @@
26
+ @@ -56,7 +60,12 @@
27
27
fi
28
28
fi
29
29
30
30
-if [ "$color_prompt" = yes ]; then
31
- - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
32
- +# Lima PS1: set color to lime
31
+ +# Lima PS1: set color to lime green
33
32
+if [ "$color_prompt" = true ]; then
34
- + PS1='${debian_chroot:+($debian_chroot)}\[\033[38;2;192;255;0m \]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
33
+ + PS1='${debian_chroot:+($debian_chroot)}\[\033[38;2;50;205;50m \]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
35
34
+elif [ "$color_prompt" = 256 ]; then
36
- + PS1='${debian_chroot:+($debian_chroot)}\[\033[38;5;154m \]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
35
+ + PS1='${debian_chroot:+($debian_chroot)}\[\033[38;5;77m \]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
37
36
+elif [ "$color_prompt" = yes ]; then
38
- + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m \]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
37
+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m \]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
39
38
else
40
39
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
41
- fi
42
- fi
43
40
EOF
44
41
45
42
fi
0 commit comments