configs  Check-in [33d4e74312]

Overview
Comment:Only set up Fossil checkin signing when key exists
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 33d4e74312103f5b3c5564c1725430cb85bec827d0b36d54f87c1fe1cfd76d22
User & Date: js on 2020-08-31 20:22:19
Other Links: manifest | tags
Context
2020-09-09
19:44
zshrc: Clean up now unused variable check-in: 3a29822385 user: js tags: trunk
2020-08-31
20:22
Only set up Fossil checkin signing when key exists check-in: 33d4e74312 user: js tags: trunk
2020-08-30
18:25
zshrc: Clean up a little check-in: 3041a12b6a user: js tags: trunk
Changes

Modified setup.sh from [0674b083ad] to [0f1b8bcb8e].

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