aboutsummaryrefslogtreecommitdiff
path: root/cabal
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-02-16 16:36:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2021-02-16 16:36:37 +1300
commit024fff575c631e2835d447515be60908c69824a2 (patch)
treed5af6428c840ad73764783dae5b185660589d3f1 /cabal
parentMerge branch 'release/v10.26.0' into develop (diff)
downloaddotfiles-024fff575c631e2835d447515be60908c69824a2.tar.gz
dotfiles-024fff575c631e2835d447515be60908c69824a2.zip
Add profile.d stub for cabal (Haskell) PATH set
Diffstat (limited to 'cabal')
-rw-r--r--cabal/cabal.sh3
-rw-r--r--cabal/profile.d/cabal.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/cabal/cabal.sh b/cabal/cabal.sh
new file mode 100644
index 00000000..b5730916
--- /dev/null
+++ b/cabal/cabal.sh
@@ -0,0 +1,3 @@
+# Include user-built Haskell programs if the dir exists
+[ -d "$HOME"/.cabal/bin ] || return
+PATH=$HOME/.cabal/bin:$PATH
diff --git a/cabal/profile.d/cabal.sh b/cabal/profile.d/cabal.sh
new file mode 100644
index 00000000..b5730916
--- /dev/null
+++ b/cabal/profile.d/cabal.sh
@@ -0,0 +1,3 @@
+# Include user-built Haskell programs if the dir exists
+[ -d "$HOME"/.cabal/bin ] || return
+PATH=$HOME/.cabal/bin:$PATH