]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Symlink ~/.git-prompt.sh to /usr/share/git/git-prompt.sh on gentoo
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 16 Jul 2019 14:20:48 +0000 (15:20 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 16 Jul 2019 14:20:48 +0000 (15:20 +0100)
states/zsh/gentoo.sls

index 370262367bba98b9249e7c8a6776359c0946e222..b25aaaead7aa0aaf3870bdb4b1a93f182f8e4af9 100644 (file)
@@ -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