Skip to main content

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"
NameTypeDescription
namestringthe link name, supports templating
targetstringthe name of the file or directory to link to, supports templating
ifstringgolang template conditional statement, see if
mkdirbooleancreate name's parent folder when it does not exist