#!/bin/bash -e git clone --depth=1 http://git.fedorahosted.org/git/gdb-heap.git || true cd gdb-heap # make sure gdbinit exists touch ~/.gdbinit if ! grep "init-gdb-heap" ~/.gdbinit; then cat >> ~/.gdbinit <