Created
June 25, 2012 11:40
-
-
Save dodecaphonic/2988116 to your computer and use it in GitHub Desktop.
Setup pós instalação
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Based off of Dropbox, copies all necessary files to their right places and | |
# puts machine up to speed in no time. To add the cherry on top, it clones | |
# my emacs config from github and lets me finally do work. | |
# | |
# Vitor Peres <[email protected]> | |
CONFIG_ROOT=$HOME/Dropbox/dotfiles | |
PLATFORM=$(uname) | |
PROFILE=$HOME/.bashrc | |
if [ $PLATFORM = "Darwin" ]; then | |
PROFILE=$HOME/.profile | |
fi | |
if [ -f $PROFILE ]; then | |
echo -n Removing existing $PROFILE... | |
rm $PROFILE | |
echo done. | |
fi | |
echo -n Linking $PROFILE... | |
ln -s ~/Dropbox/dotfiles/bashrc $PROFILE | |
echo done. | |
echo -n "Linking to config files... " | |
ln -s $CONFIG_ROOT/git-completion.bash ~/.git-completion.bash | |
ln -s $CONFIG_ROOT/gitconfig ~/.gitconfig | |
ln -s $CONFIG_ROOT/screenrc ~/.screenrc | |
ln -s $CONFIG_ROOT/irbrc ~/.irbrc | |
echo "done." | |
echo -n Placing ssh configuration and keys... | |
if [ ! -f ~/.ssh ]; then | |
mkdir ~/.ssh | |
fi | |
ln -s $CONFIG_ROOT/ssh-config ~/.ssh/config | |
ln -s $CONFIG_ROOT/keys/* ~/.ssh | |
chmod 0600 ~/.ssh/* | |
echo done. | |
echo -n Cloning emacs config from github... | |
# Remove existing ~/.emacs.d | |
if [ -d ~/.emacs.d ]; then | |
rm -rf ~/.emacs.d | |
fi | |
env -i git clone [email protected]:dodecaphonic/emacs.git ~/.emacs.d | |
cd ~/.emacs.d | |
git submodule update --init | |
echo done. | |
if [ $PLATFORM = "Linux" ]; then | |
cd $HOME | |
env -i git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git | |
cd gnome-terminal-colors-solarized | |
echo -n Setting gnome-terminal theme to solarized dark... | |
./set_dark.sh | |
echo " done." | |
cd .. | |
rm -rf gnome-terminal-colors-solarized | |
fi | |
source $PROFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment