updated hist dir, added yielding shell function