20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
have fish && link_file fish .config/fish ../
if have fossil; then
echo "Setting global fossil settingsā¦"
fossil set --global autosync 0
fossil set --global editor 'vim -c "se ft=gitcommit"'
fossil set --global mv-rm-files 1
gpg_args="-u 35E1AF8B --clearsign -o"
if have gpg2; then
fossil set --global clearsign 1
fossil set --global pgp-command "gpg2 $gpg_args"
elif have gpg; then
fossil set --global clearsign 1
fossil set --global pgp-command "gpg $gpg_args"
fi
fi
have git && link_file git .config/git ../
if have gpg || have gpg2; then
mkdir -p $HOME/.local/share/gnupg
link_file gpg.conf .local/share/gnupg/gpg.conf ../../../
fi
|
|
>
>
>
>
>
>
|
>
>
|
|
>
|
>
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
have fish && link_file fish .config/fish ../
if have fossil; then
echo "Setting global fossil settingsā¦"
fossil set --global autosync 0
fossil set --global editor 'vim -c "se ft=gitcommit"'
fossil set --global mv-rm-files 1
if have gpg2; then
gpg="gpg2"
elif have gpg; then
gpg="gpg"
else
gpg=":"
fi
gpg_key="35E1AF8B"
if test $($gpg -a --export $gpg_key 2>/dev/null | wc -c) -gt 0; then
fossil set --global pgp-command \
"$gpg -u $gpg_key --clearsign -o"
fossil set --global clearsign 1
else
fossil unset --global pgp-command
fossil unset --global clearsign
fi
fi
have git && link_file git .config/git ../
if have gpg || have gpg2; then
mkdir -p $HOME/.local/share/gnupg
link_file gpg.conf .local/share/gnupg/gpg.conf ../../../
fi
|