]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Symlink git prompt on ubuntu
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 7 Aug 2019 10:19:42 +0000 (11:19 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 7 Aug 2019 10:19:42 +0000 (11:19 +0100)
states/zsh/ubuntu.sls

index a016719609cfe5e6350f8f49f8cf30ba1f8d3c5a..37ac5fc709d0b544cf7fbb0610fc7f1e4ee40c4a 100644 (file)
@@ -2,3 +2,11 @@ install zsh:
   pkg.installed:
     - pkgs:
       - zsh
+
+ensure git-prompt exists:
+  file.symlink:
+    - name: {{ grains['homedir'] }}/.git-prompt.sh
+    - target: /usr/lib/git-core/git-sh-prompt
+    - user: {{ grains['user'] }}
+    - group: {{ grains['user'] }}
+    - mode: 444