env var setting extracted out to allow use in the common configuration script

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-06-04 09:12:19 +02:00
parent 7a6027677a
commit 0b3c32ff23
3 changed files with 18 additions and 19 deletions

13
.setenv Normal file
View file

@ -0,0 +1,13 @@
export GOPATH=~/go
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$HOME/tools:$PATH
export PATH=$GOPATH/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=/usr/local/heroku/bin:$PATH
export PATH=$HOME/tools/subuser/logic:$HOME/.subuser/bin:$PATH
export PATH=$HOME/.multirust/toolchains/stable/cargo/bin:$PATH
export PATH=$HOME/.cargo/bin:$PATH
export RUST_SRC_PATH=$HOME/dev/rust/src
export EDITOR="vim"
export KEYTIMEOUT=1

16
.zshrc
View file

@ -46,20 +46,6 @@ else
fi
# env vars
export GOPATH=~/go
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$HOME/tools:$PATH
export PATH=$GOPATH/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=/usr/local/heroku/bin:$PATH
export PATH=$HOME/tools/subuser/logic:$HOME/.subuser/bin:$PATH
export PATH=$HOME/.multirust/toolchains/stable/cargo/bin:$PATH
export PATH=$HOME/.cargo/bin:$PATH
export RUST_SRC_PATH=$HOME/dev/rust/src
export EDITOR="vim"
export KEYTIMEOUT=1
#
#temporary fix for rustc [https://github.com/rust-lang/rust-installer/issues/30], for Fedora only
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
source ~/.setenv

View file

@ -25,6 +25,7 @@ ln -vfs "$DIR/.vimrc" ~/.
ln -vfs "$DIR/.tmux.conf" ~/.
rm -f "~/.zshrc"
ln -vfs "$DIR/.zshrc" ~/.
ln -vfs "$DIR/.setenv" ~/.
ln -vfs "$DIR/.oh-my-zsh" ~/.
ln -vfs "$DIR/.oh-my-zsh-plugins/zsh-syntax-highlighting" ~/.oh-my-zsh/custom/plugins/
ln -vfs "$DIR/.Slic3r" ~/.
@ -40,6 +41,8 @@ mkdir -p ~/.config/vdirsyncer/
ln -vfs "$DIR/.config/vdirsyncer/config" ~/.config/vdirsyncer/
ln -vfs "$DIR/.config/redshift.conf" ~/.config/redshift.conf
source ~/.setenv
cd "$DIR/.vim/bundle/YouCompleteMe/"
git submodule update --init --recursive
python install.py --clang-completer
@ -86,11 +89,8 @@ else
fi
cargo install rustfmt
# racer
set +e
cargo install clippy
cargo install racer
set -e
# rvm
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3