aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-02-16 16:37:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2021-02-16 16:37:22 +1300
commit9fafa922dec3bf68dacf2b52e4d5a3216fd5579e (patch)
treed73950bc7ba36ba4151d03f4abde4cd25215875d
parentAdd profile.d stub for cabal (Haskell) PATH set (diff)
downloaddotfiles-9fafa922dec3bf68dacf2b52e4d5a3216fd5579e.tar.gz
dotfiles-9fafa922dec3bf68dacf2b52e4d5a3216fd5579e.zip
Add profile.d stub for cargo (Rust) PATH set
-rw-r--r--Makefile4
-rw-r--r--cargo/profile.d/cabal.sh3
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 059893fb..e7256214 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@
install-bin \
install-bin-man \
install-cabal \
+ install-cargo \
install-cpanm \
install-curl \
install-dillo \
@@ -396,6 +397,9 @@ install-bin-man:
install-cabal:
cp -p -- cabal/profile.d/*.sh $(HOME)/.profile.d
+install-cargo:
+ cp -p -- cargo/profile.d/*.sh $(HOME)/.profile.d
+
install-cpanm:
cp -p -- cpanm/profile.d/*.sh $(HOME)/.profile.d
diff --git a/cargo/profile.d/cabal.sh b/cargo/profile.d/cabal.sh
new file mode 100644
index 00000000..b5730916
--- /dev/null
+++ b/cargo/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