dotfiles/legacy/initialSetup.sh

38 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
# Install packages which are frequently used by me
2019-03-09 12:24:04 +00:00
if [[ $(command -v dnf) == 0 ]]; then
sudo -i dnf install tmux git gnupg2 openssh
2019-03-09 13:30:33 +00:00
elif [[ $(command -v pacman) == 0 ]]; then
2019-03-09 12:24:04 +00:00
sudo pacman -S tmux git gnupg openssh
2019-03-09 13:30:33 +00:00
fi
2019-03-09 12:24:04 +00:00
HERE=$(pwd)
2019-03-09 12:24:04 +00:00
# Set up tmux
ln -s $HERE/tmux/tmux.conf ~/.tmux.conf
2019-03-09 12:24:04 +00:00
# Get the tmux-plugin-manager
mkdir -p ~/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm
2019-03-09 12:24:04 +00:00
# Set up redshift
mkdir -p ~/.config/redshift
mkdir -p ~/.config/autostart
ln -s $HERE/redshift/redshift.conf ~/.config/redshift/redshift.conf
2019-03-09 12:24:04 +00:00
# Set up gnupg things
mkdir -p ~/.gnupg
2019-03-09 13:30:33 +00:00
ln -s $HERE/gnupg/gpg.conf ~/.gnupg/gpg.conf
ln -s $HERE/gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf
ln -s $HERE/gnupg/sshcontrol ~/.gnupg/sshcontrol
ln -s $HERE/gnupg/gnupg_agent ~/.gnupg/gnupg_agent
git config --global gpg.program gpg2
2019-03-16 07:55:25 +00:00
git config --global user.name jdreichmann
git config --global user.email johanna.reichmann@delta-industries.de
git config --global user.signingkey 03624C433676E465
git config --global commit.gpgsign true
git config --global alias.logs "log --show-signature"