]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/themes/humza.zsh-theme
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / themes / humza.zsh-theme
1 # ZSH THEME Preview: https://skitch.com/huyy/rk979/humza.zshtheme
2
3 let TotalBytes=0
4 for Bytes in $(ls -l | grep "^-" | awk '{ print $5 }')
5 do
6    let TotalBytes=$TotalBytes+$Bytes
7 done
8                 # should it say b, kb, Mb, or Gb
9 if [ $TotalBytes -lt 1024 ]; then
10    TotalSize=$(echo -e "scale=3 \n$TotalBytes \nquit" | bc)
11    suffix="b"
12 elif [ $TotalBytes -lt 1048576 ]; then
13    TotalSize=$(echo -e "scale=3 \n$TotalBytes/1024 \nquit" | bc)
14    suffix="kb"
15 elif [ $TotalBytes -lt 1073741824 ]; then
16    TotalSize=$(echo -e "scale=3 \n$TotalBytes/1048576 \nquit" | bc)
17    suffix="Mb"
18 else
19    TotalSize=$(echo -e "scale=3 \n$TotalBytes/1073741824 \nquit" | bc)
20    suffix="Gb"
21 fi
22
23 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%} ☞ '
24
25 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}±("
26 ZSH_THEME_GIT_PROMPT_SUFFIX=");%{$reset_color%}"