blob: 77bdb3657e87ca5dc022bf4b91cebbc9ae79a79f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -eou pipefail
echo "Setting up dotfiles..."
rm -f ~/.bash_profile ~/.bashrc
cd ~/.rc
stow --no-folding --adopt .
git restore .
echo "Updating git remote..."
git remote set-url origin [email protected]:~a14m/.rc
echo "Configuring GPG..."
mkdir -p ~/.local/bin/
ln -sf ~/.rc/.gnupg/pinentry-wrapper ~/.local/bin/pinentry-wrapper
envsubst < ~/.gnupg/gpg-agent.conf.template > ~/.gnupg/gpg-agent.conf
chmod 0700 ~/.gnupg
gpgconf --kill gpg-agent 2>/dev/null || true
gpg-connect-agent /bye 2>/dev/null || true
echo "Done..."
|