summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-04-17 22:23:32 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-04-17 22:23:32 -0700
commit6e2d6dbd38db570fc3041584d0508c0450aca65c (patch)
treee5eda0ab70b5bbdb33ab0b183d4abda52d14f921 /.bashrc
parent61ce8f75b9915b1162102f71b5a6542e0f040438 (diff)
downloaddotfiles-6e2d6dbd38db570fc3041584d0508c0450aca65c.tar.gz
package-plan-unpack
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index a5b9cf2e..51fe585e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -162,6 +162,17 @@ debrel () {
)
}
+package-plan-unpack () {
+ package="$1"
+ patches="$HOME/src/package-plan/patches/${package%-*}/${package##*-}"
+ cd /tmp
+ cabal unpack "$package"
+ cd "$package"
+ mkdir -p "$patches"
+ ln -s "$patches" patches
+ ls "$(readlink $patches)"
+}
+
# tidy up if I deleted files from stowed repos without properly
# restowing
kill-broken-stowed-symlinks () {