aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-04-07 12:37:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-04-07 12:37:32 +1200
commitfd705194e5b1eb2f5c07b196f4be83a74bfe8fa1 (patch)
tree196647897a56de4402fedd0ab52220c18363e0c9 /dist
parentAdd some more comments to README (diff)
downloaddotfiles-fd705194e5b1eb2f5c07b196f4be83a74bfe8fa1.tar.gz
dotfiles-fd705194e5b1eb2f5c07b196f4be83a74bfe8fa1.zip
Install shell types conditionally on $SHELL
Diffstat (limited to 'dist')
-rw-r--r--dist/install-login-shell.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/dist/install-login-shell.sh b/dist/install-login-shell.sh
new file mode 100644
index 00000000..b7292a77
--- /dev/null
+++ b/dist/install-login-shell.sh
@@ -0,0 +1,12 @@
+target=install-sh
+case ${SHELL##*/} in
+ bash)
+ target=install-bash ;;
+ ksh|ksh88|ksh93|mksh|pdksh)
+ target=install-ksh ;;
+ yash)
+ target=install-yash ;;
+ zsh)
+ target=install-zsh ;;
+esac
+make "$target"