Skip to content

Commit 3c9eb1b

Browse files
authored
Merge pull request #1090 from afbjorklund/prompt-script
Don't try to patch the prompt on other systems
2 parents cd504a4 + 5af3623 commit 3c9eb1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/08-shell-prompt.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22
set -eux
33

4-
if [ "${LIMA_CIDATA_NAME}" = "default" ]; then
4+
# This script is only intended for the default.yaml image, which is based on Ubuntu LTS
5+
6+
if [ "${LIMA_CIDATA_NAME}" = "default" ] && command -v patch >/dev/null 2>&1 && grep -q color_prompt "/home/${LIMA_CIDATA_USER}.linux/.bashrc"; then
57

68
! grep -q "^# Lima PS1" "/home/${LIMA_CIDATA_USER}.linux/.bashrc" || exit 0
79

0 commit comments

Comments
 (0)