Convert rust from stow to chezmoi
This commit is contained in:
parent
a670c6271c
commit
bae893a736
@ -1,8 +1,6 @@
|
||||
/hellotech/
|
||||
/install-scripts/
|
||||
/old-scripts/
|
||||
/ruby/
|
||||
/rust/
|
||||
/starship/
|
||||
/tmux/
|
||||
/vim-fancy/
|
||||
|
||||
7
dot_config/profile/profile.d/rust.sh.tmpl
Normal file
7
dot_config/profile/profile.d/rust.sh.tmpl
Normal file
@ -0,0 +1,7 @@
|
||||
{{ if lookPath "cargo" -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -f "${HOME}/.cargo/env" ]; then
|
||||
. "${HOME}/.cargo/env"
|
||||
fi
|
||||
{{- end }}
|
||||
3
dot_config/vim/ftplugin/rust.vim.tmpl
Normal file
3
dot_config/vim/ftplugin/rust.vim.tmpl
Normal file
@ -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' }
|
||||
{{- 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…
Reference in New Issue
Block a user