ソースを参照

Fix system-wide prompt

tags/2016.12
Filip Pytloun 9年前
コミット
973163e2ea
2個のファイルの変更4行の追加4行の削除
  1. +1
    -1
      linux/files/prompt.sh
  2. +3
    -3
      linux/system/prompt.sls

+ 1
- 1
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

+ 3
- 3
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 %}

読み込み中…
キャンセル
保存