-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap_void.sh
More file actions
executable file
·88 lines (69 loc) · 2.45 KB
/
bootstrap_void.sh
File metadata and controls
executable file
·88 lines (69 loc) · 2.45 KB
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
82
83
84
85
86
87
88
#!/bin/sh
# Void setup script
# Setup void linux environment and desktop
#
# Author: Reuben Joseph<reubenej@gmail.com>
#=====================Message Colors=========================
FAIL=$(tput setaf 1) #red
PASS=$(tput setaf 2) #green
HEAD=$(tput setaf 5) #magenta
INFO=$(tput setaf 6) #cyan
END=$(tput sgr0) #ends color
#============================================================
#Print Heading message
# printf "${HEAD}<message>${END}\n"
#Print informational message
# printf "${INFO}<message>${END}\n"
#
#Print Failure message
# printf "${FAIL}<message>${END}\n"
#
#Print Success message
# printf "${PASS}<message>${END}\n"
#Setup some variables
USER=`whoami`
PWD=`pwd`
DESKTOP_ENVIRON=cinnamon
#Install dev environment
install_dev()
{
printf "${HEAD}Toolchain Installation${END}\n"
printf "${INFO}Installing tools.${END}\n"
xbps-install -y gcc make git gdb vim tmux curl wget base-devel
# Dependencies for rvm
xbps-install -y patch libxml2-devel libxslt-devel readline-devel libtool autoconf automake pkg-config zlib-devel libyaml-devel gdbm-devel ncurses-devel libressl-devel
}
install_desktop()
{
printf "${HEAD}Desktop Installation${END}\n"
printf "${INFO}Synchronizing Repodata${END}\n"
xbps-install -S
printf "${INFO}Installing Xserver components${END}\n"
xbps-install -y xorg-minimal xorg-fonts xrandr xev
printf "${INFO}Installing Extra Fonts..${END}\n"
xbps-install -y font-inconsolata-otf ttf-ubuntu-font-family noto-fonts-ttf
printf "${INFO}Installing Desktop environment${END}\n"
xbps-install -y $DESKTOP_ENVIRON
#Install common applications
printf "${INFO}Installing Desktop applications${END}\n"
xbps-install -y parcellite sakura xarchiver firefox chromium mplayer
}
configure_vim()
{
#Check if vim is installed
VIM=`vim`
#Setup pathogen
printf "${INFO}Setting up pathogen${END}\n"
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/vim/bundle
#Install remaining plugins
printf "${INFO}Installing vim-airline${END}\n"
git clone https://github.com/vim-airline/vim-airline.git
printf "${INFO}Installing fugitive${END}\n"
git clone https://github.com/tpope/vim-fugitive.git
printf "${INFO}Installing nerdtree${END}\n"
git clone https://github.com/scrooloose/nerdtree.git
printf "${INFO}Setting up pathogen${END}\n"
printf "${PASS}Completed Installation${END}\n"
}