#!/bin/zsh

# remove our config from .pdbrc
PDBRC_PATH="$HOME/.pdbrc"
PDBRC_PATH=${PDBRC_PATH:A}

if [ ! -r "$PDBRC_PATH" ] ; then
  echo "Wasn't allowed to read the ~/.pdbrc file" >&2
  exit 1 
fi

## remove our integration if there
TMPFILE=$(mktemp)
grep -v "Support/Kaleidoscope/" "$PDBRC_PATH" >"$TMPFILE" 
mv "$TMPFILE" "$PDBRC_PATH"
