forked from kul/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·70 lines (54 loc) · 1.72 KB
/
setup.sh
File metadata and controls
executable file
·70 lines (54 loc) · 1.72 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
#!/bin/sh
scriptdir=$(pwd)
# utils for gnome terminal colors
sudo apt-get install gconf2
sudo apt-get install dconf-cli
sudo apt-get install gnome-shell
sudo apt-get install gnome-terminal
# pathogen setup
mkdir -p ~/.vim/pathogen ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# vundle setup
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle
# vim pathogen plugins
git clone git://github.com/altercation/vim-colors-solarized.git ~/.vim/pathogen/vim-colors-solarized
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/pathogen/nerdtree
# oh my zsh setup
sudo apt-get install zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
sudo chsh -s /bin/zsh
backup_date=$(date +"%m-%d-%Y_%T")
backup_dotfiles() {
mkdir -p ~/dotfbkp_$backup_date
while [ $# -ne 0 ]; do
mv ~/$1 ~/dotfbkp_$backup_date
ln -s `pwd`/$1 ~/$1
shift
done
}
backup_dotfiles .vimrc .zshrc .screenrc .ctags .minttyrc .tmux.conf
if [ ! -e ~/.envrc ]; then
cp .envrc ~/.envrc;
fi
# solarized and dircolors setup for ubuntu
platform=`uname`
if [ $platform = 'Linux' ]; then
git clone https://github.com/Anthony25/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh
cd ..
cp external/dircolors.256dark ~/.dir_colors
fi
# fonts
mkdir -p ~/.fonts
cd ~/.fonts
cp "$scriptdir/external/Hermit*.otf" .
fc-cache -vf ~/.fonts
# liquid prompt
mkdir -p ~/bin
cd ~/bin
wget https://raw.github.com/nojhan/liquidprompt/master/liquidprompt
cd ..
vim +BundleInstall +qall
echo 'Setup done.'