-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
99 lines (65 loc) · 2.36 KB
/
install.sh
File metadata and controls
99 lines (65 loc) · 2.36 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
89
90
91
92
93
94
95
96
97
98
99
# install vim
sudo apt-get install vim
# install git
sudo apt-get install git
# install google-chrome-stable
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# install i3
# http://www.brentwalther.net/blog/how-to-replace-unity-with-i3-window-manager-on-ubuntu-1204
sudo -i
echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" >> /etc/apt/sources.list
logout
sudo apt-get update
sudo apt-get --allow-unauthenticated install sur5r-keyring
sudo apt-get update
sudo apt-get install i3
# install python-pip
sudo apt-get install python-pip
# install quickswitch-for-i3
# https://github.com/proxypoke/quickswitch-for-i3
sudo pip install i3-py
sudo pip install quickswitch-i3
vim ~/.i3/config
bindsym control+space exec /usr/local/bin/quickswitch.py -d "dmenu -i -l 20"
# install oh-my-zsh
# https://github.com/robbyrussell/oh-my-zsh
sudo apt-get install git
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
sudo apt-get install zsh
chsh -s /bin/zsh
# install powerline-fonts
# http://askubuntu.com/questions/283908/how-can-i-install-and-use-powerline-plugin
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
sudo mv PowerlineSymbols.otf /usr/share/fonts/
sudo fc-cache -vf
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/
# install powerline
cd ~/dev/env
git clone https://github.com/milkbikis/powerline-shell.git
cd powerline-shell
cp config.py.dist config.py
./install.py
vim ~/.zshrc
function powerline_precmd() {
export PS1="$(~/dev/env/powerline-shell/powerline-shell.py $? --shell zsh 2> /dev/null)"
}
function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
if [ "$s" = "powerline_precmd" ]; then
return
fi
done
precmd_functions+=(powerline_precmd)
}
install_powerline_precmd
# install vim-spf13
TODO
# set up ~/.common_profile
TODO
# set up app aliases
sudo ln -s /usr/bin/gnome-terminal /usr/local/bin/t
sudo ln -s /usr/bin/google-chrome /usr/local/bin/c