Permalink
Browse files

setup: make default gpg gpg2

Makes password remembering work by default (don't want to run
`git config --global gpg.program gpg2` because that ends up making you
use an older MacPorts gpg2 on macOS.

See https://askubuntu.com/a/952735/194570 for more info.
  • Loading branch information...
gibfahn committed Sep 4, 2017
1 parent ccedb80 commit 4b3d557a7520ef7e2d329eeced2cb024d37d9db7
Showing with 14 additions and 1 deletion.
  1. +14 −1 setup/ubu.sh
@@ -71,6 +71,19 @@ if not j4-dmenu-desktop; then
popd >/dev/null
fi

# Change default version of gpg to gpg2 (which Ubuntu should be doing soon, it's
# in Debian Stretch). Don't do anything unless we're sure.
gpgVersion=$(gpg --version | head -1 | awk '{print $NF}')
if [ ${gpgVersion%%.*} = 1 ] && exists gpg2 &&
[ "$(which gpg)" = /usr/bin/gpg -a "$(which gpg2)" = /usr/bin/gpg2 ]; then
echo "❯❯❯ Setting default gpg to gpg2 not gpg1"
sudo mv /usr/bin/gpg /usr/bin/gpg1
sudo update-alternatives --verbose --install /usr/bin/gpg gnupg /usr/bin/gpg2 50
else
echo "❯❯❯ Not messing with default gpg"
fi


if exists google-chrome; then
echo "❯❯❯ Already Installed: Google Chrome"
else
@@ -89,7 +102,7 @@ else
fi


# Make Ctrl-[Shift]-Tab switch tabs in Gnome-Terminal
# Make Ctrl-[Shift]-Tab switch tabs in Gnome-Terminal, rather than Ctrl-PgUp/PgDn.
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Primary>Tab'
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Primary><Shift>Tab'

0 comments on commit 4b3d557

Please sign in to comment.