From 90366d4edf46502e780a49331d9e4112e07fcfc9 Mon Sep 17 00:00:00 2001 From: ViktorBarzin Date: Sat, 13 Jan 2018 21:32:03 +0000 Subject: [PATCH] add shell setup --- setup-env.sh | 35 +++++++++++++++++++++++++++++++++++ setup-vim.sh | 1 - 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 setup-env.sh diff --git a/setup-env.sh b/setup-env.sh new file mode 100644 index 0000000..caa66f1 --- /dev/null +++ b/setup-env.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Install zsh +sudo apt install zsh +# Setup oh-my-zsh +sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" +# Password prompt + +# Setup config files +git clone https://github.com/ViktorBarzin/dot_files.git +cp dot_files/.zshrc ~/.zshrc +cp dot_files/.bash_aliases ~/.bash_aliases +sudo cp dot_files/virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh +cp dot_files/.zshenv ~/.zshenv + +# Configure j (jump) +# Debian like +wget https://github.com/gsamokovarov/jump/releases/download/v0.18.0/jump_0.18.0_amd64.deb +sudo dpkg -i jump_0.18.0_amd64.deb + +# RHEL like +# wget https://github.com/gsamokovarov/jump/releases/download/v0.18.0/jump-0.18.0-1.x86_64.rpm +# sudo rpm -i jump-0.18.0-1.x86_64.rpm +# Setup vim + + +# Setup pyenv +git clone https://github.com/pyenv/pyenv.git ~/.pyenv +# Install python +# pyenv install 3.6.4 # throws some error? :/ + +# Install pip +sudo apt install python-pip && sudo pip install --upgrade pip +sudo install virtualenvwrapper + diff --git a/setup-vim.sh b/setup-vim.sh index 3ef50d0..2f7b09a 100755 --- a/setup-vim.sh +++ b/setup-vim.sh @@ -10,7 +10,6 @@ rm /usr/share/vim/vimrc wget https://raw.githubusercontent.com/ViktorBarzin/dot_files/master/.vimrc -O ~/.vimrc; # mkdir -p ~/.vim/colors && cd ~/.vim/colors; # wget -O wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=13400; -git clone https://github.com/ViktorBarzin/dot_files.git rm -rf ~/.vim mv dot_files/vim-plugins ~/.vim rm -rf dot_files