From d5a218e02c0e5bbf6e6831a4832ba9aab28b2803 Mon Sep 17 00:00:00 2001 From: Second Planet Date: Mon, 24 Jan 2011 19:42:38 -0500 Subject: [PATCH] added theme: humza.zshtheme --- .DS_Store | Bin 0 -> 6148 bytes .gitignore | 3 ++- plugins/.DS_Store | Bin 0 -> 6148 bytes themes/humza.zsh-theme | 26 ++++++++++++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .DS_Store create mode 100644 plugins/.DS_Store create mode 100644 themes/humza.zsh-theme diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..577da3b34b842787b049d70b84106fdd3cc6f197 GIT binary patch literal 6148 zcmZQzU|@7AO)+F(5MW?n;9!8z3~dZp0Z1N%F(jFwA|RR(WJXGHa!yiyehyTe7z(79 zg+Y%YogtH<1X({jLjgk$Ln&AykD(Y@iWqZ8)r^L~Xb6mkz-S1JhQMeDU=IOCh%g5? zgdQbFLtr!nMneD|0-*9i0n}GuU|?{7(hU$AB*nnUzyNB#gJ>3*CU8Fhq6VZDBnQ$8 zqCr|27(pzsJXk9OBLhS$Be)yFz`zLZl7MKib_PbU%^*HlI|C!wW(EdEh;{}>h;{}> zXb*)E)T05J57ExR2(}&Ox>0&G1V%#u76Qx=h5)GkcV%F})&Ga68YM?VU^E1VWe6~` zxCFa6fhtWL-UHROp!zfcs^$Px9V4h-hKPZbfU0(Ib<6}ARFr@!1BrvQgJ^Jd%*en1 TuFXdq1F#SprAI@6z99er?7JET literal 0 HcmV?d00001 diff --git a/.gitignore b/.gitignore index f84db6dc2..46cf67be2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ +*.DS_Store locals.zsh log/.zsh_history projects.zsh custom/*.zsh -!custom/example.zsh \ No newline at end of file +!custom/example.zsh diff --git a/plugins/.DS_Store b/plugins/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d1334aa5b3abafbd4ec7a5ba7c1e372c2279b967 GIT binary patch literal 6148 zcmZQzU|@7AO)+F(5MW?n;9!8z45|#6fRTZLfrTN7p@<=sp**EHIVUMUKL@Ie2}*<1 zFoMiLlZQ%=QllX-8UmvsFd71*Aut*OgD3<*^){&f=N?3E8gbS3Ltr!nhHD5gvbY4hIDsln96kiqxd~7? z5F1n#GlJ@5h#qiN3~K~1K?W2hpvpnjJ-8}ngtQ?*e316hh5#&pM(NQI7=RD}02!JR Avj6}9 literal 0 HcmV?d00001 diff --git a/themes/humza.zsh-theme b/themes/humza.zsh-theme new file mode 100644 index 000000000..f96432f3d --- /dev/null +++ b/themes/humza.zsh-theme @@ -0,0 +1,26 @@ +# ZSH THEME + +let TotalBytes=0 +for Bytes in $(ls -l | grep "^-" | awk '{ print $5 }') +do + let TotalBytes=$TotalBytes+$Bytes +done + # should it say b, kb, Mb, or Gb +if [ $TotalBytes -lt 1024 ]; then + TotalSize=$(echo -e "scale=3 \n$TotalBytes \nquit" | bc) + suffix="b" +elif [ $TotalBytes -lt 1048576 ]; then + TotalSize=$(echo -e "scale=3 \n$TotalBytes/1024 \nquit" | bc) + suffix="kb" +elif [ $TotalBytes -lt 1073741824 ]; then + TotalSize=$(echo -e "scale=3 \n$TotalBytes/1048576 \nquit" | bc) + suffix="Mb" +else + TotalSize=$(echo -e "scale=3 \n$TotalBytes/1073741824 \nquit" | bc) + suffix="Gb" +fi + +PROMPT='%{$reset_color%}%n %{$fg[green]%}{%{$reset_color%}%~%{$fg[green]%}}%{$reset_color%}$(git_prompt_info) greetings, earthling %{$fg[green]%}[%{$reset_color%}%{$TotalSize%}%{$suffix%}%{$fg[green]%}]%{$fg[red]%}$%{$reset_color%} ☞ ' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}±(" +ZSH_THEME_GIT_PROMPT_SUFFIX=");%{$reset_color%}" \ No newline at end of file