Convert rust from stow to chezmoi

main
Buddy Sandidge 2 years ago
parent a670c6271c
commit bae893a736

@ -1,8 +1,6 @@
/hellotech/ /hellotech/
/install-scripts/ /install-scripts/
/old-scripts/ /old-scripts/
/ruby/
/rust/
/starship/ /starship/
/tmux/ /tmux/
/vim-fancy/ /vim-fancy/

@ -0,0 +1,7 @@
{{ if lookPath "cargo" -}}
#!/usr/bin/env bash
if [ -f "${HOME}/.cargo/env" ]; then
. "${HOME}/.cargo/env"
fi
{{- end }}

@ -0,0 +1,3 @@
{{ if lookPath "rustc" -}}
let g:rustfmt_autosave = 1
{{- end }}

@ -1 +1,3 @@
{{ if lookPath "rustc" -}}
Plug 'rust-lang/rust.vim', { 'for': 'rust' } Plug 'rust-lang/rust.vim', { 'for': 'rust' }
{{- end }}

@ -1,5 +0,0 @@
#!/usr/bin/env bash
if [ -f "${HOME}/.cargo/env" ]; then
. "${HOME}/.cargo/env" || exit 1
fi

@ -1 +0,0 @@
let g:rustfmt_autosave = 1
Loading…
Cancel
Save