is_command() {
  command -v -- "$1" >/dev/null
}
if is_command gstat; then
  stat()
  {
    gstat "$@"
  }
fi
