From 4d4e5f1133e9778ed206244f6e44a502cbe69f11 Mon Sep 17 00:00:00 2001 From: Cyryl Plotnicki-Chudyk Date: Sun, 19 Jul 2015 09:56:32 +0200 Subject: [PATCH] rust support added --- .gitmodules | 3 +++ .vim/bundle/racer | 1 + .zshrc | 2 ++ common/configure_fresh_system | 7 +++++++ 4 files changed, 13 insertions(+) create mode 160000 .vim/bundle/racer diff --git a/.gitmodules b/.gitmodules index 93e7e18e..a75174ac 100644 --- a/.gitmodules +++ b/.gitmodules @@ -56,3 +56,6 @@ [submodule ".vim/bundle/rust.vim"] path = .vim/bundle/rust.vim url = https://github.com/rust-lang/rust.vim.git +[submodule ".vim/bundle/racer"] + path = .vim/bundle/racer + url = https://github.com/phildawes/racer.git diff --git a/.vim/bundle/racer b/.vim/bundle/racer new file mode 160000 index 00000000..063094b9 --- /dev/null +++ b/.vim/bundle/racer @@ -0,0 +1 @@ +Subproject commit 063094b977ce6c415f91e939626f334982c0a0a3 diff --git a/.zshrc b/.zshrc index 2652f6a1..d17e17cb 100644 --- a/.zshrc +++ b/.zshrc @@ -49,6 +49,8 @@ PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting export PATH=$HOME/tools:$PATH export PATH=/usr/local/heroku/bin:$PATH export PATH=$HOME/tools/subuser/logic:$HOME/.subuser/bin:$PATH +export PATH=$HOME/dev/dotfiles/.vim/bundle/racer/target/debug:$PATH +export RUST_SRC_PATH=$HOME/dev/rust/src export EDITOR="vim" export KEYTIMEOUT=1 diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 3c618703..5310d341 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -48,6 +48,13 @@ mkdir ~/.fonts cp -rv "$DIR/fonts" ~/.fonts fc-cache +#rust +curl -sSf https://static.rust-lang.org/rustup.sh | sh +cd "$DIR/.vim/bundle/racer/" +cargo build +cd "$HOME/dev/" +git clone https://github.com/rust-lang/rust.git + #rvm gpg --recv-keys BF04FF17 curl -sSL https://get.rvm.io | bash -s stable