configs  Check-in [2a1cebbbad]

Overview
Comment:Set global fossil settings in setup.sh
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2a1cebbbad6d1f066864d32eb5dc46ec57e6b5ab7268e57c08ca68b4969fcb4f
User & Date: js 2020-08-30 11:57:21
Context
2020-08-30
12:03
setup.sh: Clean up a little check-in: bfbe9e5b51 user: js tags: trunk
11:57
Set global fossil settings in setup.sh check-in: 2a1cebbbad user: js tags: trunk
11:26
Rename create_symlinks.sh to setup.sh check-in: 651581a411 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to setup.sh.

10
11
12
13
14
15
16















17
18
19
20
21
22
23
		echo "$HOME/$2 already exists, skipping…"
	fi
}

mkdir -p $HOME/.config
which cvs >/dev/null 2>&1 && link_file cvsrc .cvsrc
which fish >/dev/null 2>&1 && link_file fish .config/fish ../















which git >/dev/null 2>&1 && link_file git .config/git ../
if which gpg >/dev/null 2>&1 || which gpg2 >/dev/null 2>&1; then
	mkdir -p $HOME/.local/share/gnupg
	link_file gpg.conf .local/share/gnupg/gpg.conf ../../../
fi
which tmux >/dev/null 2>&1 && link_file tmux .config/tmux ../
which vim >/dev/null 2>&1 && link_file vim .config/vim ../







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
		echo "$HOME/$2 already exists, skipping…"
	fi
}

mkdir -p $HOME/.config
which cvs >/dev/null 2>&1 && link_file cvsrc .cvsrc
which fish >/dev/null 2>&1 && link_file fish .config/fish ../
if which fossil >/dev/null 2>&1; 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 which gpg2 >/dev/null 2>&1; then
		fossil set --global clearsign 1
		fossil set --global pgp-command "gpg2 $gpg_args"
	elif which gpg >/dev/null 2>&1; then
		fossil set --global clearsign 1
		fossil set --global pgp-command "gpg $gpg_args"
	fi
fi
which git >/dev/null 2>&1 && link_file git .config/git ../
if which gpg >/dev/null 2>&1 || which gpg2 >/dev/null 2>&1; then
	mkdir -p $HOME/.local/share/gnupg
	link_file gpg.conf .local/share/gnupg/gpg.conf ../../../
fi
which tmux >/dev/null 2>&1 && link_file tmux .config/tmux ../
which vim >/dev/null 2>&1 && link_file vim .config/vim ../