From c04388b696411b67fbf7fb501681b1ce1f2f46a0 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 16 Jul 2019 15:20:48 +0100 Subject: [PATCH] Symlink ~/.git-prompt.sh to /usr/share/git/git-prompt.sh on gentoo --- states/zsh/gentoo.sls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/states/zsh/gentoo.sls b/states/zsh/gentoo.sls index 3702623..b25aaae 100644 --- a/states/zsh/gentoo.sls +++ b/states/zsh/gentoo.sls @@ -4,3 +4,11 @@ install zsh: - app-shells/zsh - app-shells/zsh-completions - app-shells/gentoo-zsh-completions + +ensure git-prompt exists: + file.symlink: + - name: {{ grains['homedir'] }}/.git-prompt.sh + - target: /usr/share/git/git-prompt.sh + - user: {{ grains['user'] }} + - group: {{ grains['user'] }} + - mode: 444 -- 2.46.2