diff --git a/README.textile b/README.textile index 2dbfbe5a..c176540f 100644 --- a/README.textile +++ b/README.textile @@ -6,13 +6,6 @@ h2. Setup @oh-my-zsh@ should work with any recent release of "zsh":http://www.zsh.org/, the minimum recommended version is 4.3.9. -h3. The automatic installer... (do you trust me?) - -@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@ - -h3. The manual way - - 1. Clone the repository @git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@ @@ -47,23 +40,12 @@ the "refcard":http://www.bash2zsh.com/zsh_refcard/refcard.pdf is pretty tasty fo h3. Customization -If you want to override any of the default behavior, just add a new file (ending in @.zsh@) into the @custom/@ directory. If you have many functions which go good together you can put them as a *.plugin.zsh file in the @custom/plugins/@ directory and then enable this plugin. -If you would like to override the functionality of a plugin distributed with oh-my-zsh, create a plugin of the same name in the @custom/plugins/@ directory and it will be loaded instead of the one in @plugins/@. - - -h3. Uninstalling - -If you want to uninstall it, just run @uninstall_oh_my_zsh@ from the command line and it'll remove itself and revert you to bash (or your previous zsh config). h2. Help out! I'm far from being a zsh-expert and suspect there are many ways to improve. If you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests! -h3. Send us your theme! - -I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory. - h2. Contributors This project wouldn't exist without all of our awesome users and contributors. diff --git a/lib/functions.zsh b/lib/functions.zsh index f26659ec..892f0537 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -2,14 +2,6 @@ function zsh_stats() { history | awk '{print $2}' | sort | uniq -c | sort -rn | head } -function uninstall_oh_my_zsh() { - /bin/sh $ZSH/tools/uninstall.sh -} - -function upgrade_oh_my_zsh() { - /bin/sh $ZSH/tools/upgrade.sh -} - function take() { mkdir -p $1 cd $1 diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 69b4b033..b0b7d395 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -43,10 +43,3 @@ if [ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" -o ! -e "$HOME/.zcompdump.zwc zcompile "$HOME/.zcompdump" fi -# Check for updates on initial load... -if [ "$DISABLE_AUTO_UPDATE" = "true" ] -then - return -else - /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh -fi diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 65299df3..c2accfc8 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -10,9 +10,6 @@ export ZSH_THEME="robbyrussell" # Set to this to use case-sensitive completion # export CASE_SENSITIVE="true" -# Comment this out to disable weekly auto-update checks -# export DISABLE_AUTO_UPDATE="true" - # Uncomment following line if you want to disable colors in ls # export DISABLE_COLOR="true" diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh deleted file mode 100644 index e1e4eb99..00000000 --- a/tools/check_for_upgrade.sh +++ /dev/null @@ -1,35 +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 - # update the zsh file - _update_zsh_update - fi - fi -else - # create the zsh file - _update_zsh_update -fi diff --git a/tools/install.sh b/tools/install.sh deleted file mode 100755 index 8ed1403a..00000000 --- a/tools/install.sh +++ /dev/null @@ -1,36 +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 https://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 `which zsh` - -echo ' __ __ ' -echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ ' -echo ' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ ' -echo '/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / ' -echo '\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ ' -echo ' /____/' - -echo "\n\n ....is now installed." -/usr/bin/env zsh -source ~/.zshrc diff --git a/tools/uninstall.sh b/tools/uninstall.sh deleted file mode 100644 index 8ff58332..00000000 --- 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 6bdd02e3..00000000 --- a/tools/upgrade.sh +++ /dev/null @@ -1,12 +0,0 @@ -current_path=`pwd` -echo "Upgrading Oh My Zsh" -( cd $ZSH && git pull origin master ) -echo ' __ __ ' -echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ ' -echo ' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ ' -echo '/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / ' -echo '\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ ' -echo ' /____/' -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." -echo "To keep up on the latest, be sure to follow Oh My Zsh on twitter: http://twitter.com/ohmyzsh" -cd $current_path \ No newline at end of file