forked from jigish/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.Linux.sh
More file actions
executable file
·60 lines (52 loc) · 1.49 KB
/
config.Linux.sh
File metadata and controls
executable file
·60 lines (52 loc) · 1.49 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
#!/bin/bash
CURRDIR=`pwd`
SCRIPTDIR=$(cd `dirname $0` && pwd)
sudo apt-get-repository ppa:keithw/mosh
sudo apt-get update
sudo apt-get install -y perl curl wget python-software-properties mosh ctags screen ngrep
# Update git submodules
cd $SCRIPTDIR
git pull
git submodule update --init
cd vim-config
git submodule update --init
# Create Links
cd ~
if [[ -f .bashrc ]]; then
mv .bashrc .bashrc.old
fi
ln -s $SCRIPTDIR/bashrc .bashrc
ln -s $SCRIPTDIR/bashrc.`uname` .bashrc.`uname`
if [[ -f .gitconfig ]]; then
mv .gitconfig .gitconfig.old
fi
ln -s $SCRIPTDIR/gitconfig .gitconfig
ln -s $SCRIPTDIR/git-global-ignore .git-global-ignore
ln -s $SCRIPTDIR/tigrc .tigrc
ln -s $SCRIPTDIR/vim-config .vim
ln -s $SCRIPTDIR/slate.js .slate.js
ln -s $SCRIPTDIR/zshrc .zshrc
ln -s $SCRIPTDIR/screenrc .screenrc
ln -s .vim/vimrc .vimrc
ln -s .vim/gvimrc .gvimrc
mkdir bin
cd bin
ln -s $SCRIPTDIR/z/z.sh
# Ack
curl http://beyondgrep.com/ack-2.04-single-file > ack
chmod 755 ack
if [[ "$1" == "-ooyala" ]] ; then
cd ~
git clone ssh://git@git.corp.ooyala.com/users/jigish dotfiles-ooyala
ln -s ~/dotfiles-ooyala/bashrc.ooyala .bashrc.ooyala
ln -s ~/dotfiles-ooyala/screenrc.cybertron.prod .screenrc.cybertron.prod
ln -s ~/dotfiles-ooyala/screenrc.cybertron.dev .screenrc.cybertron.dev
fi
cd /tmp
wget https://bitbucket.org/pypa/setuptools/raw/0.7.2/ez_setup.py -O - | sudo python
cd /usr/local
sudo git clone https://github.com/Lokaltog/powerline.git
cd powerline
sudo ./setup.py build
sudo ./setup.py install
cd $CURRDIR