summarylogtreecommitdiffstats
path: root/clerk_setup
diff options
context:
space:
mode:
Diffstat (limited to 'clerk_setup')
-rwxr-xr-xclerk_setup15
1 files changed, 15 insertions, 0 deletions
diff --git a/clerk_setup b/clerk_setup
new file mode 100755
index 000000000000..2334c246fdcb
--- /dev/null
+++ b/clerk_setup
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+read -e -p "Create configuration for clerk? (Y/n) > " install
+install=${install:-y}
+case $install in
+ [Yy]) cp clerk $path;
+ if [[ ! -d "${HOME}/.config/clerk" ]]
+ then
+ mkdir "${HOME}/.config/clerk"
+ fi
+ cp /usr/share/doc/clerk/clerk.tmux /usr/share/doc/clerk/clerk.conf "${HOME}/.config/clerk"
+ sed -i "s@PLACEHOLDER@"$HOME"@" "${HOME}/.config/clerk/clerk.conf"
+ ;;
+ *) exit;
+esac