diff options
author | Robby Russell <robby@planetargon.com> | 2011-06-03 08:50:07 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-06-03 08:50:07 -0700 |
commit | 3ddc49cafd09239e8ab5fd3cfdfb1a2ed73686c3 (patch) | |
tree | d09fb5160b9e17ecbaf0c8f2e9455f044f4f894b /themes | |
parent | 30787d82bfa5a20adfd9c5be5760f7fce02e5759 (diff) | |
parent | 93dab36fcb7f138aba32e5102c621180055d67fe (diff) | |
download | zsh-3ddc49cafd09239e8ab5fd3cfdfb1a2ed73686c3.tar.gz zsh-3ddc49cafd09239e8ab5fd3cfdfb1a2ed73686c3.tar.bz2 zsh-3ddc49cafd09239e8ab5fd3cfdfb1a2ed73686c3.zip |
Merge pull request #378 from secondplanet/master
Humza.zsh-theme
Diffstat (limited to 'themes')
-rw-r--r-- | themes/humza.zsh-theme | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/themes/humza.zsh-theme b/themes/humza.zsh-theme new file mode 100644 index 000000000..107886295 --- /dev/null +++ b/themes/humza.zsh-theme @@ -0,0 +1,26 @@ +# ZSH THEME Preview: https://skitch.com/huyy/rk979/humza.zshtheme + +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%}" |