Fix system-wide prompt
diff --git a/linux/files/prompt.sh b/linux/files/prompt.sh
index aee9780..0663bfd 100644
--- a/linux/files/prompt.sh
+++ b/linux/files/prompt.sh
@@ -7,7 +7,7 @@
[[ $- == *i* ]] || return 0
{%- for user, prompt in system.prompt.iteritems() %}
-{% if user != default %}
+{% if user != "default" %}
if [ "$USERNAME" == "{{ user }}" ]; then
export PS1="{{ prompt }} "
return 0
diff --git a/linux/system/prompt.sls b/linux/system/prompt.sls
index a3916bb..b191d14 100644
--- a/linux/system/prompt.sls
+++ b/linux/system/prompt.sls
@@ -9,16 +9,16 @@
/etc/bash.bashrc:
file.replace:
- pattern: ".*PS1=.*"
- - repl: "# Prompt is set by /etc/profile.d/prompt.sh"
+ - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
/etc/skel/.bashrc:
file.replace:
- pattern: ".*PS1=.*"
- - repl: "# Prompt is set by /etc/profile.d/prompt.sh"
+ - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
/root/.bashrc:
file.replace:
- pattern: ".*PS1=.*"
- - repl: "# Prompt is set by /etc/profile.d/prompt.sh"
+ - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
{%- endif %}