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)"
|
eval "$(helm completion fish)"
|
||||||
{{- end }}
|
#{{- end }}
|
||||||
{{ if lookPath "erd" -}}
|
#{{ if lookPath "erd" -}}
|
||||||
eval "$(erd --completions fish)"
|
eval "$(erd --completions fish)"
|
||||||
{{- end }}
|
#{{- end }}
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
{{ if lookPath "go" -}}
|
# chezmoi:template:left-delimiter=#{{
|
||||||
{{ if stat "/usr/local/apps/golang/current/bin" -}}
|
#{{- /* 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
|
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}"
|
PATH="/usr/local/apps/golang/current/bin:${PATH}"
|
||||||
fi
|
fi
|
||||||
{{- end }}
|
#{{- end }}
|
||||||
|
|
||||||
if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
|
if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
|
||||||
PATH="${PATH}:${HOME}/go/bin"
|
PATH="${PATH}:${HOME}/go/bin"
|
||||||
fi
|
fi
|
||||||
{{- end }}
|
#{{- end }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ if lookPath "cargo" -}}
|
# chezmoi:template:left-delimiter=#{{
|
||||||
#!/usr/bin/env bash
|
#{{- /* vim: filetype=sh */ -}}
|
||||||
|
#{{- if lookPath "cargo" -}}
|
||||||
if [ -f "${HOME}/.cargo/env" ]; then
|
if [ -f "${HOME}/.cargo/env" ]; then
|
||||||
. "${HOME}/.cargo/env"
|
. "${HOME}/.cargo/env"
|
||||||
fi
|
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]
|
[Unit]
|
||||||
Description=Podman service
|
Description=Podman service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart={{ lookPath "podman" }} system service --time 0
|
ExecStart=#{{ lookPath "podman" }}# system service --time 0
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
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
|
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', { 'tag': '0.40.0' }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
map <leader>fz :GFiles<CR>
|
map <leader>fz :GFiles<CR>
|
||||||
map <leader>rg :Rg<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'
|
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' }
|
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||||
{{- end }}
|
"{{- end }}
|
||||||
|
Loading…
Reference in New Issue