Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (25 sloc) 807 Bytes
#!/bin/bash
BASE_PATH="."
if [ -n "${1}" ]; then
BASE_PATH=${1}
fi
echo -n "Installing Sublime Text 2 Packages: "
mkdir -p "${HOME}/Library/Application Support/Sublime Text 2"
cp -R "${BASE_PATH}/Sublime Text 2/" "${HOME}/Library/Application Support/Sublime Text 2/"
echo "finished."
echo -n "Installing Xcode Themes: "
mkdir -p "${HOME}/Library/Developer/Xcode/UserData/FontAndColorThemes/"
cp -R "${BASE_PATH}/Xcode/FontAndColorThemes/" "${HOME}/Library/Developer/Xcode/UserData/FontAndColorThemes/"
echo "finished."
echo -n "Installing bash prompt: "
for FILE in `find ${BASE_PATH}/Prompt -type f`; do
mv ${FILE} "${HOME}/"
done
if [ ! -f "${HOME}/.bash_profile" ]; then
mv "${BASE_PATH}/.bash_profile" "${HOME}/"
else
cat >> ${HOME}/.bash_profile << EOF
. ~/.aliases
EOF
fi
echo "finished."