aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-setup
blob: fb8ce610dff75d44f3f6bf8fb43b2a6a85fdb031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

set -e

if [[ -f "$HOME/.recit.location" ]]; then
    recfile_location=$(cat "$HOME/.recit.location") 
    echo "looks like you already have recit set up at ${recfile_location}, aborting..."
    exit 1
fi

cat share/recit/recit.example.rec > "$HOME/.recit.rec"
echo "$HOME/.recit.rec" > "$HOME/.recit.location"