-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·81 lines (70 loc) · 2.35 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
# Clear screen and indicate intentions.
clear
echo "Assuming control now."
# Install desired programs, extensions, etc.
echo "Installing programs."
sudo apt-get update
sudo apt-get install -qq curl
sudo apt-get install -qq neovim
sudo apt-get install -qq tmux
sudo apt-get install -qq tree
sudo apt-get install -qq xclip
sudo apt-get install -qq i3
sudo apt-get install -qq rxvt-unicode
sudo apt-get install -qq pandoc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
sudo apt-get install -qq zathura
sudo apt-get install -qq htop
sudo apt-get install -qq ranger
sudo apt-get install -qq fonts-inconsolata
sudo apt-get install -qq python-pip
sudo apt-get install -qq python3-pip
sudo apt-get install -qq libssl-dev
sudo apt-get install -qq sshpass
sudo apt-get install -qq virtualenv
sudo apt-get install -qq virtualenvwrapper
sudo apt-get install -qq w3m
sudo apt-get install -qq feh
sudo apt-get install -qq i3blocks
# Install fuzzy finder
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
echo "Installing python packages."
# Need this so deoplete works
pip3 -q install neovim
pip3 -q install flake8
# Set up desired directories.
echo "Creating directories."
mkdir -p ~/Projects/sandbox
mkdir ~/Virtualenvs
mkdir -p ~/.vim/autoload
mkdir -p ~/.config/i3
mkdir -p ~/.config/i3blocks
mkdir -p ~/.config/dunst
mkdir -p ~/.config/ranger
mkdir ~/Documents/Books
# Link to dotfiles.
echo "Linking from $USER's home directory to dotfiles."
ln -sf $(pwd)/dotFiles/bash_profile ~/.bash_profile
ln -sf $(pwd)/dotFiles/bashrc ~/.bashrc
ln -sf $(pwd)/dotFiles/bash_aliases ~/.bash_aliases
ln -sf $(pwd)/dotFiles/vimrc ~/.vimrc
ln -sf $(pwd)/dotFiles/gitconfig ~/.gitconfig
ln -sf $(pwd)/dotFiles/i3config ~/.config/i3/config
ln -sf $(pwd)/dotFiles/Xresources ~/.Xresources
ln -sf $(pwd)/dotFiles/dunstrc ~/.config/dunst/dunstrc
ln -sf $(pwd)/dotFiles/rangerconfig ~/.config/ranger/rc.conf
ln -sf $(pwd)/dotFiles/htoprc ~/.config/htop/htoprc
ln -sf $(pwd)/dotFiles/flake8 ~/.config/flake8
ln -sf $(pwd)/dotFiles/tmux ~/.tmux.conf
# Set up NeoVim.
ln -s ~/.vim ~/.config/nvim
ln -sf $(pwd)/dotFiles/vimrc ~/.config/nvim/init.vim
# Create local-only bashrc_local file.
touch ~/.bashrc_local
# Source all bash files.
source ~/.bash_profile
# Restart services that may have been modified.
exit