Permalink
Browse files

zsh: Removing oh-my-zsh and old configs in preparation for using prezto

  • Loading branch information...
1 parent 7253d2a commit 4a4a9bed0d61ba5cd4956346617d56870cac2c85 @csand committed Jan 14, 2013
Showing with 0 additions and 222 deletions.
  1. +0 −1 ohmyzsh/.oh-my-zsh
  2. +0 −69 zsh/.oh-my-zsh/custom/coarsesand.zsh-theme
  3. +0 −22 zsh/.zsh/functions/term_colors
  4. +0 −14 zsh/.zsh/oh-my.zsh
  5. +0 −26 zsh/.zsh/regular.zsh
  6. +0 −46 zsh/.zshenv
  7. +0 −44 zsh/.zshrc
1 ohmyzsh/.oh-my-zsh
@@ -1 +0,0 @@
-Subproject commit 80a603259657acab97badbae20003b5a34c901f9
View
69 zsh/.oh-my-zsh/custom/coarsesand.zsh-theme
@@ -1,69 +0,0 @@
-PROMPT='$(prompt_coarsesand)'
-
-prompt_coarsesand () {
- user_name="%{$fg_bold[yellow]%}%n%{$reset_color%}"
- host_name="%{$fg[red]%}%m%{$reset_color%}"
- working_dir="%{$fg_bold[magenta]%}%4~%{$reset_color%}"
-
- prompt_char=$(my_prompt_char)
- git_branch=$(my_git_branch_info)
- git_status=$(my_git_status_info)
- venv_info=$(my_venv_prompt_info)
-
- echo -n "
- ${user_name} at ${host_name} in ${working_dir}${git_branch}${git_status}${venv_info}
- ${prompt_char}"
-}
-
-# Hooks
-
-preexec () {
- echo ''
-}
-
-# Util
-
-is_root_user () {
- [ $(whoami) = root ]
-}
-
-# Git
-
-ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}"
-ZSH_THEME_GIT_PROMPT_DIRTY="!"
-ZSH_THEME_GIT_PROMPT_UNTRACKED="?"
-ZSH_THEME_GIT_PROMPT_CLEAN=""
-ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
-
-my_git_branch_info () {
- ref=$(git symbolic-ref HEAD 2> /dev/null) || return
- branch_name="${ref#refs/heads/}"
- echo -n " on branch %{$fg[blue]%}$branch_name%{$reset_color%}"
-}
-
-my_git_status_info () {
- echo -n "\
-$ZSH_THEME_GIT_PROMPT_PREFIX\
-$(parse_git_dirty)\
-$ZSH_THEME_GIT_PROMPT_SUFFIX\
-"
-}
-
-# Virtualenv
-
-my_venv_prompt_info () {
- if [ $VIRTUAL_ENV ]
- then
- venv_name=$(basename $VIRTUAL_ENV)
- echo -n " venv %{$fg_bold[green]%}${venv_name}%{$reset_color%}"
- fi
-}
-
-my_prompt_char () {
- if is_root_user
- then echo -n "%{$fg_bold[red]%}"
- else echo -n "%{$fg_bold[white]%}"
- fi
- echo -n "⇒ %{$reset_color%}"
-}
-
View
22 zsh/.zsh/functions/term_colors
@@ -1,22 +0,0 @@
-# Author: Giles Orr
-# URL: http://gilesorr.com/bashprompt/howto/c350.html
-# License: GNU Free Documentation License, Version 1.1 or any later version
-# published by the Free Software Foundation;
-# http://gilesorr.com/bashprompt/howto/a1004.html
-
-T='gYw' # The test text
-
-echo -e "\n 40m 41m 42m 43m\
- 44m 45m 46m 47m";
-
-for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
- '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
- ' 36m' '1;36m' ' 37m' '1;37m';
- do FG=${FGs// /}
- echo -en " $FGs \033[$FG $T "
- for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
- do echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
- done
- echo;
-done
-echo
View
14 zsh/.zsh/oh-my.zsh
@@ -1,14 +0,0 @@
-# ==========
-# Oh My Zsh!
-# ==========
-
-ZSH=$HOME/.oh-my-zsh
-ZSH_THEME="coarsesand"
-DISABLE_AUTO_UPDATE="true"
-
-plugins=(bundler django git github mercurial node pip powder rake rbenv vundle)
-if [[ `uname` == 'Darwin' ]]
- then plugins=(brew $plugins)
-fi
-
-source $ZSH/oh-my-zsh.sh
View
26 zsh/.zsh/regular.zsh
@@ -1,26 +0,0 @@
-# ===============
-# Regular ol' Zsh
-# ===============
-
-# Completion
-autoload -U compinit
-compinit
-
-# Prompt themes
-autoload -U promptinit
-promptinit
-
-# History
-HISTFILE=~/.zsh_history
-HISTSIZE=10000
-SAVEHIST=10000
-
-# Options
-setopt autocd
-setopt extendedglob
-setopt nomatch
-setopt appendhistory
-
-unsetopt notify
-
-# bindkey -v # Start ZLE in vi insert mode
View
46 zsh/.zshenv
@@ -1,46 +0,0 @@
-EDITOR=vim
-CLICOLOR=1
-
-# Mac settings
-if [[ `uname` = 'Darwin' ]]
-then
- LSCOLORS=exBxcxCxbxgxGxdxdxGeEx
- PATH=/usr/local/sbin:$PATH # Homebrew
-fi
-
-# Pythons
-if [[ -d /usr/local/share/python ]]
-then
- PATH=/usr/local/share/python:$PATH
-fi
-
-if [[ -d /usr/local/share/python3 ]]
-then
- PATH=/usr/local/share/python3:$PATH
-fi
-
-# rbenv
-# Get it on the path first is ~/.rbenv exists
-if [[ -d ~/.rbenv ]]
-then
- PATH=$HOME/.rbenv/bin:$PATH
-fi
-
-if which rbenv &>/dev/null
-then
- eval "$(rbenv init -)"
-fi
-
-# virtualenvwrapper
-WORKON_HOME=$HOME/.virtualenvs/
-PIP_VIRTUALENV_BASE=$WORKON_HOME
-PIP_RESPECT_VIRTUALENV=true
-VIRTUAL_ENV_DISABLE_PROMPT=true
-
-if which virtualenvwrapper_lazy.sh &>/dev/null
-then
- source virtualenvwrapper_lazy.sh
-fi
-
-# Personal bin dir
-PATH=$HOME/bin:$PATH
View
44 zsh/.zshrc
@@ -1,44 +0,0 @@
-# ==========
-# Oh My Zsh?
-# ==========
-
-if [[ -s ~/.oh-my-zsh/oh-my-zsh.sh ]]
-then source ~/.zsh/oh-my.zsh
-else source ~/.zsh/regular.zsh
-fi
-
-# =========
-# Functions
-# =========
-
-# Path Zsh searches for functions
-fpath=($fpath ~/.zsh/functions)
-
-autoload term_colors
-
-# =======
-# Aliases
-# ======
-
-# Macvim
-if [[ "`uname`" = Darwin ]]
-then
- alias vim="/Applications/MacVim.app/Contents/MacOS/Vim"
-fi
-
-# Commands where correction just gets irritating
-for cmd in "cp mv mkdir tmux rbenv ncmpcpp subl powder bundle vundle pip which"
-do
- alias $cmd="nocorrect $cmd"
-done
-
-alias addrepo="sudo add-apt-repository" # add-apt-repository is just too verbose
-alias serve="python -m SimpleHTTPServer 8060" # Serve current directory, thanks Python
-alias be="bundle exec"
-
-alias weather="weatherman"
-alias hastier="cat $1 | haste | pbcopy"
-alias mman="middleman"
-
-echo "Did you update your system today?"
-

0 comments on commit 4a4a9be

Please sign in to comment.