blob: 99cc863113c54d0ddb16f770a0c2f8013f2f6d95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
read -e -p "Create configuration for clerk? (Y/n) > " install
install=${install:-y}
case $install in
[Yy]) 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"
if [[ -n ${MPD_HOST} ]]
then
sed -i "s/localhost/"$MPD_HOST"/" "${HOME}/.config/clerk/clerk.conf"
fi
;;
*) exit;
esac
|