Convert rust from stow to chezmoi

This commit is contained in:
Buddy Sandidge 2023-05-25 15:43:03 -07:00
parent a670c6271c
commit bae893a736
6 changed files with 12 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +0,0 @@
let g:rustfmt_autosave = 1