-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotbot_install
executable file
·36 lines (28 loc) · 937 Bytes
/
dotbot_install
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
# Install stuff via dotbot
set -e
if [ `uname` == "Darwin" ]; then
CONFIG="osx.conf.yaml"
else
CONFIG="linux.conf.yaml"
# Install xmonad and dmenu.
sudo apt-get install xmonad suckless-tools xscreensaver
# Install handy status bar
sudo apt-get install xmobar
# Ehh, do this later.
# # Latest git
# # https://www.howtoforge.com/install-git-on-ubuntu-13.1
# sudo apt-get install git
# sudo apt-get update
# sudo add-apt-repository ppa:git-core/ppa
# # zsh
# sudo apt-get install zsh
# chsh -s /bin/zsh
# # antigen
# curl -L https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > antigen.zsh
fi
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"