Commits

David Jones committed ae87c68

Adding files

  • Participants

Comments (0)

Files changed (3)

+all:  setup
+
+
+all_targets:=
+
+REPO_DIR=$(HOME)/repos
+
+
+$(REPO_DIR)/oh-my-zsh/.git/config:
+	git clone git@github.com:dmj111/oh-my-zsh.git $(REPO_DIR)/oh-my-zsh
+
+all_targets += $(REPO_DIR)/oh-my-zsh/.git/config
+
+
+$(REPO_DIR)/oh-my-zsh-custom/.git/config:
+	git clone git@github.com:dmj111/oh-my-zsh-custom.git $(REPO_DIR)/oh-my-zsh-custom
+	if test -d $(REPO_DIR)/oh-my-zsh/custom ; then \
+	mv $HOME/.oh-my-zsh/custom $HOME/.oh-my-zsh/custom.old; \
+	fi
+
+all_targets += $(REPO_DIR)/oh-my-zsh/.git/config
+
+
+
+ohmyzsh_custom: $(ohmyzsh)/custom/.git/config
+$HOME/.zshrc $HOME/.zshenv ~/.oh-my-zsh/custom/.git/config: ohmyzsh
+	if test -d $HOME/.oh-my-zsh/custom ; then \
+	mv $HOME/.oh-my-zsh/custom $HOME/.oh-my-zsh/custom.old; \
+	fi
+
+	git clone git@github.com:dmj111/oh-my-zsh-custom.git ~/.oh-my-zsh/custom
+	ln -sf $HOME/.oh-my-zsh/custom/config/zshrc $HOME/.zshrc
+	ln -sf $HOME/.oh-my-zsh/custom/config/zshenv $HOME/.zshenv
+
+# all_targets += ~/.oh-my-zsh/custom/.git/config
+
+
+
+
+setup:  $(all_targets)

File setup_home.sh

+#!/bin/bash
+
+REPO_DIR=$HOME/repos
+
+## Oh-my-zsh setup
+
+from_github() {
+    name=$1
+    if [[ -d $REPO_DIR/$name ]]; then
+	echo "$name exists"
+    else
+	git clone git@github.com:dmj111/${name}.git $REPO_DIR/$name
+    fi
+}
+
+oh_my_zsh=$REPO_DIR/oh-my-zsh
+
+from_github oh-my-zsh
+from_github oh-my-zsh-custom
+
+
+if [[ -d $oh_my_zsh/custom ]]; then
+    mv $oh_my_zsh/custom $oh_my_zsh/custom.old
+    ln -s $oh_my_zsh_custom $oh_my_zsh/custom
+fi
+
+
+ln -sf $oh_my_zsh_custom/config/zshrc $HOME/.zshrc
+ln -sf $oh_my_zsh_custom/config/zshenv $HOME/.zshenv
+ln -sf $oh_my_zsh $HOME/.oh-my-zsh
+
+
+# Emacs setup
+
+from_github prelude

File ubuntu_setup.sh

+
+
+apt-get install make
+apt-get install zsh zsh-doc
+apt-get install emacs24
+apt-get install mercurial
+apt-get install git
+apt-get install keychain gnupg-agent