forked from thdxr/environment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·49 lines (40 loc) · 1005 Bytes
/
install
File metadata and controls
executable file
·49 lines (40 loc) · 1005 Bytes
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
# /bin/bash
set -e
PWD=$(pwd)
link() {
SOURCE=$PWD/$1
DEST=$HOME/$2
echo "Linking $SOURCE to $DEST"
rm -rf $DEST
ln -s $SOURCE $DEST
}
sudo pacman -Ssy
# home
shopt -s dotglob
for file in $PWD/home/*; do
name=${file##*/}
link home/$name $name
done
# configs
mkdir -p $HOME/.config
for file in $PWD/config/*; do
name=${file##*/}
link config/$name .config/$name
done
# Setup i3
sudo pacman -S --noconfirm i3-wm
sudo pacman -S --noconfirm xorg-server
sudo pacman -S --noconfirm xorg-xinit
sudo pacman -S --noconfirm xorg-xrandr
sudo pacman -S --noconfirm compton
# Setup terminal
sudo pacman -S --noconfirm rxvt-unicode
sudo pacman -S --noconfirm zsh
sudo pacman -S --noconfirm autojump
# ZSH
rm -rf $HOME/.oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# Fonts
yaourt -S consolas-font --noconfirm
yaourt -S ttf-liberation --noconfirm