diff --git a/dotfiles/zshrc.d/vmstat.zsh b/dotfiles/zshrc.d/vmstat.zsh new file mode 100644 index 0000000..c4426a8 --- /dev/null +++ b/dotfiles/zshrc.d/vmstat.zsh @@ -0,0 +1,7 @@ +function vmstat { + local _extra_args + if [ "$(tput cols)" -gt 80 ] ; then + _extra_args="-w" + fi + command vmstat ${_extra_args} "$@" +}