forked from L04DB4L4NC3R/DEC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (51 loc) · 2.08 KB
/
Makefile
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
# All plugins are submodules. Run this to clone them into their respectful configs
r=$$(cat vim-plugins)
.PHONY: bootstrap setup tools
bootstrap:
@echo "Bootstrapping system..."
sudo apt-get update && sudo apt-get upgrade -y
@echo "Making sure you have all of the dependancies..."
mkdir ./.vim/bundle
sudo apt install vim terminator zsh python-pip fonts-powerline # mono-xbuild mono-complete
pip install ranger-fm
@echo "Cloning all plugins into .vim......"
for f in $r; do $$(cd ./.vim/bundle && git clone $$f); done
@echo "Installing zsh dependancies...."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
# cd ~/.vim/bundle/YouCompleteMe && git submodule update --init --recursive && ./install.py --all
cd ~/.vim/bundle/vimspector && ./install_gadget.py --all
exit
setup:
@echo "Copying new configuration...."
@echo -n "This will replace your current configuration. Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ]
@echo "Proceeding....."
@sleep 2
rm -rf ~/.vimrc ~/.zshrc ~/.config/terminator ~/.vim
cp -r .config/* ~/.config/
cp -r .vim ~/
cp .aliases ~/
cp .vimrc ~/
cp .zshrc ~/
@echo "Changing default shell to zsh..."
sudo chsh -s /bin/zsh
exec zsh
exit
tools:
@echo "Collecting tools...."
sudo apt install autoconf libncursesw. cmake libncurses5-dev libncursesw5-dev
@echo "Installing htop....."
git clone https://github.com/hishamhm/htop.git
cd htop && ./autogen.sh && ./configure && make
@echo "Installing gotop....."
git clone --depth 1 https://github.com/cjbassi/gotop /tmp/gotop
/tmp/gotop/scripts/download.sh
sudo mv gotop /usr/local/bin
@echo "cleaning up htop and gotop"
rm -rf htop gotop
@echo "Installing nvtop....."
( git clone https://github.com/Syllo/nvtop.git && \
mkdir -p nvtop/build && cd nvtop/build && cmake .. -DNVML_RETRIEVE_HEADER_ONLINE=True && make && sudo make install ) || echo "nvidia drivers not installed, hence ignoring nvtop"
@echo "Cleaning up nvtop"
rm -rf nvtop
exit