Shows your diskusage in your zsh prompt.
# markus @ kari in ~ disk:27% [23:36:00]
# markus @ kari in /tmp disk:46% [23:36:10]
git clone https://github.com/mritzmann/zsh-diskusage.git ~/.oh-my-zsh/plugins/diskusage
- Add diskusage to your plugin array in your zshrc file:
plugins=( diskusage )
- Add
$(DISKUSAGE)
to yourPROMPT=
There is also a Pull Request: ohmyzsh/ohmyzsh#7334
Df, sed, awk and tr. Testet on Debian Jessie and Stretch.
Q: Prompt only updates when zsh is first started
A: olivierverdier/zsh-git-prompt#55 (comment)
Q: Which theme was used in the example?
A: https://gist.github.com/mritzmann/85946d9ea5ca8bc2d07a7ab02947bead