Core

/bin/util/link-config-directory.sh (306 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

## Links the application support directory for the current user to ./cfg

set -euo pipefail
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$dir/../.."

tgt="$HOME/Library/Application Support/{{{ .Name }}}"

mkdir -p "$tgt"
ln -s "$tgt" "cfg"
echo "configuration directory linked"