diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-11-07 23:52:45 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-11-07 23:52:45 -0500 |
| commit | 057dc2003a80e31822f0c3225a10e05fdabe4b92 (patch) | |
| tree | d85ee108ff63a01c93570f00925ab9ecf442fba8 | |
| parent | b359a2406c888db5286a5fd5937f3cb4740b634a (diff) | |
| download | dotfiles-057dc2003a80e31822f0c3225a10e05fdabe4b92.tar.gz dotfiles-057dc2003a80e31822f0c3225a10e05fdabe4b92.tar.xz | |
Handle systems without vmstat gracefully
| -rw-r--r-- | mkshrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -327,6 +327,7 @@ set_my_title() { } _sys_memory() { + [ -e $(which vmstat) ] && return if [ `uname` = "Linux" ] ; then vmstat | tail -n1 | awk '{print $4/1024}' | sed -e's/\..*$//g' elif [ `uname` = "FreeBSD" ] ; then |
