summaryrefslogtreecommitdiff
path: root/hooks/pre-up/1-mksh
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-09 21:42:14 -0500
committerMarc Coquand <marc@mccd.space>2024-05-09 21:42:14 -0500
commitf681e97b7deb9265227c67ff75b13feb6483287b (patch)
tree3a70b1197e02040ddcbdc9ca28ec944319fd56ca /hooks/pre-up/1-mksh
parentf7bf880b1e616c72b539c72ec5507ba554382d6b (diff)
downloadrcm-f681e97b7deb9265227c67ff75b13feb6483287b.tar.gz
rcm-f681e97b7deb9265227c67ff75b13feb6483287b.tar.bz2
rcm-f681e97b7deb9265227c67ff75b13feb6483287b.zip
Switch oksh -> mksh
Works better with direnv
Diffstat (limited to 'hooks/pre-up/1-mksh')
-rwxr-xr-xhooks/pre-up/1-mksh6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/pre-up/1-mksh b/hooks/pre-up/1-mksh
new file mode 100755
index 0000000..7cff998
--- /dev/null
+++ b/hooks/pre-up/1-mksh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if ! [ -x "$(command -v mksh)" ]; then
+ sudo xbps-install -y mksh
+ chsh -s /bin/mksh
+fi