1
1
Fork 0

Set global fossil settings in setup.sh

This commit is contained in:
Jonathan Schleifer 2020-08-30 11:57:21 +00:00
parent 2af53da269
commit 2ded84d157

View file

@ -14,6 +14,21 @@ link_file() {
mkdir -p $HOME/.config mkdir -p $HOME/.config
which cvs >/dev/null 2>&1 && link_file cvsrc .cvsrc which cvs >/dev/null 2>&1 && link_file cvsrc .cvsrc
which fish >/dev/null 2>&1 && link_file fish .config/fish ../ 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 ../ 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 if which gpg >/dev/null 2>&1 || which gpg2 >/dev/null 2>&1; then
mkdir -p $HOME/.local/share/gnupg mkdir -p $HOME/.local/share/gnupg