aboutsummaryrefslogtreecommitdiff
path: root/oh-my-zsh
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-02-18 17:05:47 -0500
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-02-18 17:05:47 -0500
commitbb3b34829a0599a2c356a46fdfa75c3f9c525088 (patch)
tree69cfc5baf380c5b4151df69fb8ba6d7525c4c0e3 /oh-my-zsh
parentfa40c9c0a1ec3238053575a2fac228f92d49fd78 (diff)
removing dependency on oh-my-zsh
Diffstat (limited to 'oh-my-zsh')
-rw-r--r--oh-my-zsh/svn.zsh16
-rw-r--r--oh-my-zsh/xcolour.zsh-theme65
2 files changed, 0 insertions, 81 deletions
diff --git a/oh-my-zsh/svn.zsh b/oh-my-zsh/svn.zsh
deleted file mode 100644
index 54d23b4..0000000
--- a/oh-my-zsh/svn.zsh
+++ /dev/null
@@ -1,16 +0,0 @@
-# utility functions for subversion
-# based on oh-my-zsh git lib module
-
-function svn_dirty {
- if [[ -n $(svn status) ]]; then
- echo "$ZSH_THEME_SVN_PROMPT_DIRTY"
- else
- echo "$ZSH_THEME_SVN_PROMPT_CLEAN"
- fi
-}
-
-function svn_prompt_info {
- info=$(svn info 2>/dev/null) || return
- rev=$(echo "$info" | grep Revision | sed 's/Revision: //')
- echo "${ZSH_THEME_GIT_PROMPT_PREFIX}r${rev}$(svn_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}"
-}
diff --git a/oh-my-zsh/xcolour.zsh-theme b/oh-my-zsh/xcolour.zsh-theme
deleted file mode 100644
index 1578a47..0000000
--- a/oh-my-zsh/xcolour.zsh-theme
+++ /dev/null
@@ -1,65 +0,0 @@
-# Matt Singleton's oh-my-zsh theme
-
-function prompt_char {
- git branch >/dev/null 2>/dev/null && echo '±' && return
- svn info >/dev/null 2>/dev/null && echo 'ϟ' && return
- echo '$'
-}
-
-function return_code {
- code=$(echo $?)
- if [[ $code == "0" ]]; then
- return
- else
- echo "%{$fg[red]%}$code%{$reset_color%} "
- fi
-}
-
-function parse_git_branch {
- echo "${ref#refs/heads/}"
-}
-
-function parse_git_staged {
- $(git diff-index --quiet --cached HEAD) && return
- echo "staged"
-}
-function parse_git_unstaged {
- $(git diff-files --quiet) && return
- echo "unstaged"
-}
-
-function my_git_prompt_info {
- ref=$(git symbolic-ref HEAD 2> /dev/null) || return
-# # staged
-# git diff-index --quiet --cached HEAD
-# if [ $? -eq 1 ]; then
-# echo "(%{$fg[yellow]%}${ref#refs/heads/}%{$reset_color%}) "
-# return
-# fi
-# # uunstaged
-# git ls-files --exclude-standard --others
-# if [ $? -eq 1 ]; then
-# echo "(%{$fg[red]%}${ref#refs/heads/}%{$reset_color%}) "
-# return
-# fi
-# # untracked and unignored
-# git diff-files --quiet
-# if [ $? -eq 1 ]; then
-# echo "(%{$fg[red]%}${ref#refs/heads/}%{$reset_color%}) "
-# return
-# fi
- echo "(${ref#refs/heads/}) "
-}
-
-PROMPT='%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[green]%}%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%}
-$(return_code)$(my_git_prompt_info)$(prompt_char) %{$reset_color%}'
-
-ZSH_THEME_GIT_PROMPT_PREFIX="("
-ZSH_THEME_GIT_PROMPT_SUFFIX=") "
-ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✘%{$reset_color%}"
-ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}✔%{$reset_color%}"
-
-ZSH_THEME_SVN_PROMPT_PREFIX="("
-ZSH_THEME_SVN_PROMPT_SUFFIX=") "
-ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%}✘%{$reset_color%}"
-ZSH_THEME_SVN_PROMPT_CLEAN="%{$fg[green]%}✔%{$reset_color%}"