-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·45 lines (35 loc) · 908 Bytes
/
setup.sh
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
#!/bin/bash
function do_link {
echo "linking $1 => $2"
if [[ -L "$1" || -e "$1" ]]
then
rm "$1"
fi
$3 ln -s "$2" "$1"
}
# SUBLIME
SUBLIME_CONFIG="Preferences.sublime-settings
Package Control.last-run
Package Control.sublime-settings
SublimeLinter.sublime-settings"
SUBLIME_CONFIG_FOLDER="$HOME/.config/sublime-text-2/Packages/User/"
IFS_OLD=$IFS
IFS=$(echo -en "\n\b")
for c in $SUBLIME_CONFIG
do
do_link "$SUBLIME_CONFIG_FOLDER$c" "$( pwd )/$c"
done
IFS=$IFS_OLD
do_link "/usr/local/bin/sublime_text" "$( pwd )/sublimetext2/sublime_text" "sudo"
# HOME CONFIG
do_link "$HOME/.bashrc" "$( pwd )/bashrc"
do_link "$HOME/.hgrc" "$( pwd )/hgrc"
# PYTHON
sudo apt-get -y install python python-setuptools
easy_install pip
# HG
sudo apt-get -y install mercurial
# GIT CONFIG
git config --global color.ui auto
# SSH, etc
sudo apt-get -y install sshfs openssh-server curl