Add delimiter template directives to avoid syntax errors
parent
d65e18856b
commit
84a09058d0
@ -0,0 +1,9 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: filetype=sh */ -}}
|
||||
#shellcheck disable=SC2034
|
||||
HISTTIMEFORMAT='%y-%m-%d %T λ '
|
||||
QUOTING_STYLE=literal
|
||||
#{{- if eq .chezmoi.os "darwin" }}
|
||||
#shellcheck disable=SC2034
|
||||
BASH_SILENCE_DEPRECATION_WARNING=1
|
||||
#{{- end }}
|
@ -1,3 +0,0 @@
|
||||
#shellcheck disable=SC2034
|
||||
HISTTIMEFORMAT='%y-%m-%d %T λ '
|
||||
QUOTING_STYLE=literal
|
@ -1,4 +0,0 @@
|
||||
{{ if eq .chezmoi.os "darwin" -}}
|
||||
#shellcheck disable=SC2034
|
||||
BASH_SILENCE_DEPRECATION_WARNING=1
|
||||
{{- end }}
|
@ -1,6 +1,8 @@
|
||||
{{ if lookPath "helm" -}}
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: filetype=sh */ -}}
|
||||
#{{ if lookPath "helm" -}}
|
||||
eval "$(helm completion fish)"
|
||||
{{- end }}
|
||||
{{ if lookPath "erd" -}}
|
||||
#{{- end }}
|
||||
#{{ if lookPath "erd" -}}
|
||||
eval "$(erd --completions fish)"
|
||||
{{- end }}
|
||||
#{{- end }}
|
||||
|
@ -1,11 +1,13 @@
|
||||
{{ if lookPath "go" -}}
|
||||
{{ if stat "/usr/local/apps/golang/current/bin" -}}
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: filetype=sh */ -}}
|
||||
#{{- if lookPath "go" -}}
|
||||
#{{ if stat "/usr/local/apps/golang/current/bin" -}}
|
||||
if [ -d /usr/local/apps/golang/current/bin ] && ! echo "${PATH}" | grep -q /usr/local/apps/golang/current/bin ; then
|
||||
PATH="/usr/local/apps/golang/current/bin:${PATH}"
|
||||
fi
|
||||
{{- end }}
|
||||
#{{- end }}
|
||||
|
||||
if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
|
||||
PATH="${PATH}:${HOME}/go/bin"
|
||||
fi
|
||||
{{- end }}
|
||||
#{{- end }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{ if lookPath "cargo" -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: filetype=sh */ -}}
|
||||
#{{- if lookPath "cargo" -}}
|
||||
if [ -f "${HOME}/.cargo/env" ]; then
|
||||
. "${HOME}/.cargo/env"
|
||||
fi
|
||||
{{- end }}
|
||||
#{{- end }}
|
||||
|
@ -1,12 +1,15 @@
|
||||
{{ if lookPath "podman" -}}
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
# chezmoi:template:right-delimiter=}}#
|
||||
#{{- /* vim: filetype=systemd */ -}}#
|
||||
#{{- if lookPath "podman" -}}#
|
||||
[Unit]
|
||||
Description=Podman service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart={{ lookPath "podman" }} system service --time 0
|
||||
ExecStart=#{{ lookPath "podman" }}# system service --time 0
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
{{- end }}
|
||||
#{{- end }}#
|
||||
|
@ -1,3 +1,5 @@
|
||||
{{ if lookPath "rustc" -}}
|
||||
" chezmoi:template:left-delimiter="{{
|
||||
"{{- /* vim: filetype=vim */ -}}
|
||||
"{{- if lookPath "rustc" -}}
|
||||
let g:rustfmt_autosave = 1
|
||||
{{- end }}
|
||||
"{{- end }}
|
||||
|
@ -1,7 +1,9 @@
|
||||
{{ if lookPath "fzf" -}}
|
||||
" chezmoi:template:left-delimiter="{{
|
||||
"{{- /* vim: filetype=vim */ -}}
|
||||
"{{- if lookPath "fzf" -}}
|
||||
Plug 'junegunn/fzf', { 'tag': '0.40.0' }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
||||
map <leader>fz :GFiles<CR>
|
||||
map <leader>rg :Rg<CR>
|
||||
{{- end }}
|
||||
"{{- end }}
|
||||
|
@ -1,3 +1,5 @@
|
||||
{{ if lookPath "go" -}}
|
||||
" chezmoi:template:left-delimiter="{{
|
||||
"{{- /* vim: filetype=vim */ -}}
|
||||
"{{- if lookPath "go" -}}
|
||||
Plug 'fatih/vim-go'
|
||||
{{- end }}
|
||||
"{{- end }}
|
||||
|
@ -1,3 +1,5 @@
|
||||
{{ if lookPath "rustc" -}}
|
||||
" chezmoi:template:left-delimiter="{{
|
||||
"{{- /* vim: filetype=vim */ -}}
|
||||
"{{- if lookPath "rustc" -}}
|
||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||
{{- end }}
|
||||
"{{- end }}
|
||||
|
Loading…
Reference in New Issue