Skip to content

Instantly share code, notes, and snippets.

@songpp
Created January 19, 2013 08:11
Show Gist options
  • Select an option

  • Save songpp/4571340 to your computer and use it in GitHub Desktop.

Select an option

Save songpp/4571340 to your computer and use it in GitHub Desktop.
刪除haskell遺留文件
#!/bin/bash
set -x
sudo rm -rf /Library/Frameworks/GHC.framework
sudo rm -rf /Library/Frameworks/HaskellPlatform.framework
sudo rm -rf /Library/Haskell
rm -rf ~/.cabal
rm -rf ~/.ghc
rm -rf ~/Library/Haskell
find /usr/bin /usr/local/bin -type l | \
xargs -If sh -c '/bin/echo -n f /; readlink f' | \
egrep '//Library/(Haskell|Frameworks/(GHC|HaskellPlatform).framework)' | \
cut -f 1 -d ' ' > /tmp/hs-bin-links
sudo rm -f `cat /tmp/hs-bin-links`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment