diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh deleted file mode 100644 index c59ebaed4..000000000 --- a/tools/check_for_upgrade.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -function _current_epoch() { - echo $(($(date +%s) / 60 / 60 / 24)) -} - -function _update_zsh_update() { - echo "LAST_EPOCH=$(_current_epoch)" > ~/.zsh-update -} - -if [ -f ~/.zsh-update ] -then - . ~/.zsh-update - - if [[ -z "$LAST_EPOCH" ]]; then - _update_zsh_update && return 0; - fi - - epoch_diff=$((${_current_epoch} - $LAST_EPOCH)) - if [ $epoch_diff -gt 6 ] - then - echo "[Oh My Zsh] Would you like to check for updates?" - echo "Type Y to update oh-my-zsh: \c" - read line - if [ "$line" = Y ] || [ "$line" = y ] - then - /bin/sh $ZSH/tools/upgrade.sh - fi - fi -fi - -# update the zsh file -_update_zsh_update - diff --git a/tools/install.sh b/tools/install.sh deleted file mode 100755 index 5a7c00950..000000000 --- a/tools/install.sh +++ /dev/null @@ -1,29 +0,0 @@ -if [ -d ~/.oh-my-zsh ] -then - echo "You already have Oh My Zsh installed. You'll need to remove ~/.oh-my-zsh if you want to install" - exit -fi - -echo "Cloning Oh My Zsh..." -/usr/bin/env git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh - -echo "Looking for an existing zsh config..." -if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] -then - echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"; - cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh; - rm ~/.zshrc; -fi - -echo "Using the Oh My Zsh template file and adding it to ~/.zshrc" -cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc - -echo "Copying your current PATH and adding it to the end of ~/.zshrc for you." -echo "export PATH=$PATH" >> ~/.zshrc - -echo "Time to change your default shell to zsh!" -chsh -s /bin/zsh - -echo "Hooray! Oh My Zsh has been installed." -/bin/zsh -source ~/.zshrc diff --git a/tools/uninstall.sh b/tools/uninstall.sh deleted file mode 100644 index 8ff583322..000000000 --- a/tools/uninstall.sh +++ /dev/null @@ -1,20 +0,0 @@ -echo "Removing ~/.oh-my-zsh" -if [[ -d ~/.oh-my-zsh ]] -then - rm -rf ~/.oh-my-zsh -fi - -echo "Looking for an existing zsh config..." -if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ] -then - echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"; - rm ~/.zshrc; - cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc; - source ~/.zshrc; -else - echo "Switching back to bash" - chsh -s /bin/bash - source /etc/profile -fi - -echo "Thanks for trying out Oh My Zsh. It's been uninstalled." \ No newline at end of file diff --git a/tools/upgrade.sh b/tools/upgrade.sh deleted file mode 100644 index f749404e9..000000000 --- a/tools/upgrade.sh +++ /dev/null @@ -1,5 +0,0 @@ -current_path=`pwd` -echo "Upgrading Oh My Zsh" -( cd $ZSH && git pull origin master ) -echo "Hooray! Oh My Zsh has been updated and/or is at the current version. \nAny new updates will be reflected when you start your next terminal session." -cd $current_path \ No newline at end of file