From 9e4b3901b9f1e56c4b38f1b0ea76e64d014938c7 Mon Sep 17 00:00:00 2001 From: Danish Khan Date: Thu, 9 Jun 2011 15:10:04 -0700 Subject: [PATCH 1/3] Added my own theme --- themes/danishkhan.zsh-theme | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 themes/danishkhan.zsh-theme diff --git a/themes/danishkhan.zsh-theme b/themes/danishkhan.zsh-theme new file mode 100644 index 000000000..0921aa815 --- /dev/null +++ b/themes/danishkhan.zsh-theme @@ -0,0 +1,8 @@ + +PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue] ]$reset_color + %{$fg_bold[cyan]%}☁ $reset_color ' +# git theming +ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green](" +ZSH_THEME_GIT_PROMPT_SUFFIX=")" +ZSH_THEME_GIT_PROMPT_CLEAN=" ✔" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$fg[green]%}" \ No newline at end of file From 0d6995a3a20afbefb359ca1ca28efbc12f5c4e10 Mon Sep 17 00:00:00 2001 From: Danish Khan Date: Thu, 9 Jun 2011 15:14:32 -0700 Subject: [PATCH 2/3] Made some changes to the theme that was causing issues with auto-complete --- themes/danishkhan.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/danishkhan.zsh-theme b/themes/danishkhan.zsh-theme index 0921aa815..4af5dd187 100644 --- a/themes/danishkhan.zsh-theme +++ b/themes/danishkhan.zsh-theme @@ -1,8 +1,8 @@ PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue] ]$reset_color - %{$fg_bold[cyan]%}☁ $reset_color ' + %{$fg_bold[cyan]%}☁ ' # git theming ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green](" ZSH_THEME_GIT_PROMPT_SUFFIX=")" ZSH_THEME_GIT_PROMPT_CLEAN=" ✔" -ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$fg[green]%}" \ No newline at end of file +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$fg[green]%}" From a635ad5bfc3ec28c73b8f446cf0f06cd346fc17c Mon Sep 17 00:00:00 2001 From: Danish Khan Date: Fri, 10 Jun 2011 11:51:28 -0700 Subject: [PATCH 3/3] Updated my theme --- themes/danishkhan.zsh-theme | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/themes/danishkhan.zsh-theme b/themes/danishkhan.zsh-theme index 4af5dd187..791b412be 100644 --- a/themes/danishkhan.zsh-theme +++ b/themes/danishkhan.zsh-theme @@ -1,8 +1,16 @@ PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue] ]$reset_color - %{$fg_bold[cyan]%}☁ ' -# git theming +$(prompt_char) ' + +# Git Theming ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green](" ZSH_THEME_GIT_PROMPT_SUFFIX=")" ZSH_THEME_GIT_PROMPT_CLEAN=" ✔" ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$fg[green]%}" + +# Repository Types +function prompt_char { + git branch >/dev/null 2>/dev/null && echo %{$fg_bold[green]%}'±' && return + hg root >/dev/null 2>/dev/null && echo '☿' && return + echo %{$fg_bold[cyan]%}'☁' +} \ No newline at end of file