Skip to content

Instantly share code, notes, and snippets.

@yunazuno
Created December 30, 2012 06:36
Show Gist options
  • Save yunazuno/4411268 to your computer and use it in GitHub Desktop.
Save yunazuno/4411268 to your computer and use it in GitHub Desktop.
Setup the new environment.
#!/bin/sh
# Setting up the new enviromnet.
ORIGIN=http://USERNAME@gitrepos.example.com/git/dotfiles.git/
ORIGIN=ssh://USERNAME@gitrespos.example.com:20022/git/dotfiles.git/
cd $HOME
git init
git remote add origin ${ORIGIN}
git config branch.master.merge refs/heads/master
git config branch.master.remote origin
git pull
# for zsh
ln -s .zsh.d/.zshenv .
cp .zsh.d/load.zprofile{.minimal,}
cp .zsh.d/load.zshrc{.minimal,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment