From 361311bb9e748155e2448f86dfd7c2502f107119 Mon Sep 17 00:00:00 2001 From: seif-allaya Date: Mon, 8 Feb 2016 00:28:04 +0100 Subject: [PATCH] The Initial commit to the darks theme ;) --- themes/darks.zsh-theme | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 themes/darks.zsh-theme diff --git a/themes/darks.zsh-theme b/themes/darks.zsh-theme new file mode 100644 index 000000000..6a20508a6 --- /dev/null +++ b/themes/darks.zsh-theme @@ -0,0 +1,47 @@ +#!/usr/bin/env zsh +# # +# # Darks ZSH Theme +# # +# # enjoy! +########## functions ########### +_my_user() { + echo "%{$fg_bold[red]%}$USER@%{$reset_color%}" +} + +_my_machine() { + echo "%{$fg_bold[green]%}%m:%{$reset_color%}" +} + +my_git_prompt_info() { + ref=$(git symbolic-ref HEAD 2> /dev/null) || return + GIT_STATUS=$(git_prompt_status) + [[ -n $GIT_STATUS ]] && GIT_STATUS=" $GIT_STATUS" + echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$GIT_STATUS$ZSH_THEME_GIT_PROMPT_SUFFIX" +} + +_my_actual_path() { + echo "%{$fg[blue]%}$PWD%{$reset_color%}" +} + +_my_user_dash() { + echo "%{$fg[red]%}%(!.#.$)%{$reset_color%}" +} + +#Killed functions +#at_seperator() { +# echo "%{$fg_bold[red]%}@%{$reset_color%}" +#} + +#doubledot_seperator() { +# echo "%{$fg[green]%}:%{$reset_color%}" +#} + +PROMPT='$(_my_user)$(_my_machine)$(_my_actual_path)$(_my_user_dash)$(my_git_prompt_info) +▶ ' + +# ########## GIT ########### +ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}git:(" +ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="${VCS_DIRTY_COLOR} ✘${VCS_SUFIX_COLOR}" +ZSH_THEME_GIT_PROMPT_CLEAN="${VCS_CLEAN_COLOR} ✔${VCS_SUFIX_COLOR}" +ZSH_THEME_GIT_PROMPT_UNMERGED="${PR_RESET}${PR_YELLOW} ✖${PR_RESET}"