Sha256: cf1eab359472b68ecc7b27823f09d562bff03e53d46ea40590caa9cb534f2b63

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

#!/usr/bin/env ruby

git_dir = File.expand_path("../../", __FILE__)

sounds = Dir.glob("#{git_dir}/sounds/*.wav")
command = %w[aplay afplay play].find { |w| `#\{w} --version 2>/dev/null`; $?.success? }
sound = sounds.at(rand(sounds.size))
system("#{command} #{sound} 2>/dev/null &")

system("happy-commit-stats")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happy-commit-0.1.0 lib/happy-commit/hook.rb