2014-12-27 10:01:16 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Do not use this script unless you know what you are doing!
|
|
|
|
set -x
|
|
|
|
|
2024-05-19 12:00:39 +02:00
|
|
|
if [ -d ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers ]; then
|
2024-07-30 13:20:32 +02:00
|
|
|
git verify-commit HEAD || exit 1
|
2024-05-21 19:24:06 +02:00
|
|
|
sleep 3
|
2024-05-19 12:00:39 +02:00
|
|
|
else
|
|
|
|
echo "Keys not found, cloning..."
|
|
|
|
mkdir -vp ~/src/gitea.blesmrt.net/Mikaela/
|
|
|
|
git clone https://gitea.blesmrt.net/Mikaela/ssh-allowed_signers.git ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers
|
2024-08-08 09:35:20 +02:00
|
|
|
git verify-commit HEAD || exit 1
|
|
|
|
sleep 3
|
2024-05-19 12:00:39 +02:00
|
|
|
fi
|
|
|
|
|
2014-12-27 10:01:16 +01:00
|
|
|
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
|
|
|
|
|
2024-06-11 20:14:38 +02:00
|
|
|
cat rc/bashrc > ~/.bashrc
|
|
|
|
cat conf/tmux.conf > ~/.tmux.conf
|
|
|
|
cat rc/zshrc > ~/.zshrc
|
|
|
|
cat rc/profile > ~/.profile
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.config/git
|
2024-06-11 20:14:38 +02:00
|
|
|
cat conf/gitconfig > ~/.config/git/config
|
2024-02-26 09:03:41 +01:00
|
|
|
touch ~/.gitconfig
|
2024-02-26 07:37:48 +01:00
|
|
|
rm ~/.gitconfig
|
2024-05-19 13:07:21 +02:00
|
|
|
ln -nsfv ~/.config/git/config ~/.gitconfig
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.git-template
|
2024-06-11 20:14:38 +02:00
|
|
|
cat rc/vimrc > ~/.vimrc
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.config/nvim/
|
2024-06-11 20:14:38 +02:00
|
|
|
cat conf/init.vim > ~/.config/nvim/init.vim
|
|
|
|
cat conf/makepkg.conf > ~/.makepkg.conf
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.config/mpv/
|
2024-06-11 20:14:38 +02:00
|
|
|
cat conf/mpv.conf > ~/.config/mpv/mpv.conf
|
2014-12-27 10:01:16 +01:00
|
|
|
if [ ! -f ~/.oidentd.conf ]; then
|
2024-06-11 20:14:38 +02:00
|
|
|
cat conf/oidentd.conf > ~/.oidentd.conf
|
2014-12-27 10:01:16 +01:00
|
|
|
fi
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.gnupg
|
2024-06-11 20:14:38 +02:00
|
|
|
cat gpg/gpg.conf > ~/.gnupg/gpg.conf
|
|
|
|
cat gpg/gpg-agent.conf > ~/.gnupg/gpg-agent.conf
|
|
|
|
cat gpg/dirmngr.conf > ~/.gnupg/dirmngr.conf
|
2019-07-01 10:47:27 +02:00
|
|
|
killall -HUP dirmngr
|
2019-02-17 13:50:59 +01:00
|
|
|
#cat rc/xinitrc > ~/.xinitrc
|
2024-06-11 20:14:38 +02:00
|
|
|
cat conf/pastebinit.xml > ~/.pastebinit.xml
|
|
|
|
cat conf/Xresources > ~/.Xresources
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.inxi
|
2024-06-11 20:14:38 +02:00
|
|
|
cat conf/inxi.conf > ~/.inxi/inxi.conf
|
2023-05-18 10:58:51 +02:00
|
|
|
gpg --quiet --import .mikaela/keys/*.asc &
|
2024-06-30 16:37:00 +02:00
|
|
|
mkdir -vp ~/.ssh/sockets/
|
|
|
|
mkdir -vp ~/.local/bin/
|
2014-12-27 10:01:16 +01:00
|
|
|
chmod a+xr chmod
|
2023-05-18 10:58:51 +02:00
|
|
|
bash -x ./chmod &
|
2023-10-09 17:37:06 +02:00
|
|
|
git submodule update --init &
|
2014-12-27 10:01:16 +01:00
|
|
|
|
2024-06-11 20:14:38 +02:00
|
|
|
if hash pre-commit 2> /dev/null; then
|
2023-05-04 12:39:10 +02:00
|
|
|
pre-commit init-templatedir ~/.git-template
|
2023-05-06 17:06:31 +02:00
|
|
|
pre-commit gc
|
2023-05-04 12:39:10 +02:00
|
|
|
fi
|
|
|
|
|
2024-07-17 11:39:21 +02:00
|
|
|
if hash symlinks 2> /dev/null; then
|
|
|
|
symlinks -d ~/.local/bin/
|
|
|
|
else
|
|
|
|
echo "WARNING! Executable named symlinks not found in PATH."
|
|
|
|
sleep 3
|
|
|
|
fi
|
|
|
|
|
2024-06-26 16:55:57 +02:00
|
|
|
if hash corepack 2> /dev/null; then
|
|
|
|
corepack enable --install-directory ~/.local/bin/
|
|
|
|
corepack enable npm --install-directory ~/.local/bin/
|
2024-08-07 07:34:52 +02:00
|
|
|
corepack pnpm config set manage-package-manager-versions=true
|
|
|
|
elif hash pnpm 2> /dev/null; then
|
|
|
|
pnpm config set manage-package-manager-versions=true
|
2024-06-26 16:55:57 +02:00
|
|
|
else
|
|
|
|
echo "WARNING! corepack is not installed."
|
2024-07-17 11:39:21 +02:00
|
|
|
sleep 3
|
2024-06-26 16:55:57 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$(id -u)" == "0" ]; then
|
|
|
|
mkdir -vp /etc/apt/apt.conf.d/
|
|
|
|
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
|
|
|
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
2024-06-26 17:07:07 +02:00
|
|
|
if hash updatedb 2> /dev/null; then
|
|
|
|
(updatedb &)
|
|
|
|
fi
|
2024-06-26 16:55:57 +02:00
|
|
|
fi
|
|
|
|
|
2023-05-18 10:58:51 +02:00
|
|
|
if [ -f "$MIKAELA_GREP" ]; then
|
2023-02-21 18:08:54 +01:00
|
|
|
bash -x .mikaela_install
|
2014-12-27 10:01:16 +01:00
|
|
|
fi
|
|
|
|
|
2023-10-09 10:12:13 +02:00
|
|
|
(git lfs install | true &)
|
|
|
|
|
2014-12-27 10:01:16 +01:00
|
|
|
set +x
|
|
|
|
# vim : set ft=sh :
|
|
|
|
#chmod 700 $HOME -R
|