Symbolic Link
Create symlinks to files and directories. Will validate the targets exist before creating the link.
Syntaxโ
link:
- name: '{{ .Home }}/.aliae.yaml'
target: '{{ .Home }}/dotfiles/aliae.yaml'
- name: '{{ .Home }}/.zshrc'
target: '{{ .Env.DOTFILES }}/config/zsh/zshrc'
- name: '{{ .Home }}/Brewfile'
value: /some/location/Brewfile
if: eq .OS "darwin"
Linkโ
Name | Type | Description |
---|---|---|
name | string | the link name, supports templating |
target | string | the name of the file or directory to link to, supports templating |
if | string | golang template conditional statement, see if |
mkdir | boolean | create name 's parent folder when it does not exist |