forked from tschanzt/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
28 lines (23 loc) · 954 Bytes
/
Copy pathinstall.sh
File metadata and controls
28 lines (23 loc) · 954 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
#!/bin/sh
DOTFILES_PATH=~/.dotfiles
CONFIGURATION_PATH=${DOTFILES_PATH}/configuration
if [ ! -f ~/.profile.mpsaved ]; then
echo "Save current .profile to profile.mpsaved"
mv ~/.profile ~/.profile.mpsaved
ln -s ${CONFIUGURATION_PATH}/.profile ~/.profile
fi
ln -s ${CONFIGURATION_PATH}/.zshrc ~/.zshrc
ln -s ${CONFIGURATION_PATH}/.zsh ~/.zsh
ln -s ${CONFIGURATION_PATH}/.buildout ~/.buildout
ln -s ${CONFIGURATION_PATH}/.gitignore_global ~/.gitignore_global
ln -s ${CONFIGURATION_PATH}/.gitconfig ~/.gitconfig
# Sublime Text 3
SUBLIME_PATH=~/Library/Application\ Support/Sublime\ Text\ 3
echo ${SUBLIME_PATH}/Packages/User
if [ ! -d "${SUBLIME_PATH}/Packages/User_original" ]; then
echo "Save current Sublime Text 3 User folder to User_original"
mv "${SUBLIME_PATH}/Packages/User" "${SUBLIME_PATH}/Packages/User_original"
ln -s "${DOTFILES_PATH}/sublime/User" "${SUBLIME_PATH}/Packages/User"
fi
# END Sublime Text 3
echo Done!