shell-things/install

57 lines
1.3 KiB
Plaintext
Raw Normal View History

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
git verify-commit HEAD
2014-12-27 10:01:16 +01:00
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
cat rc/bashrc > ~/.bashrc
cat conf/tmux.conf > ~/.tmux.conf
cat rc/zshrc > ~/.zshrc
2015-03-28 17:36:06 +01:00
cat rc/profile > ~/.profile
2014-12-27 10:01:16 +01:00
cat conf/gitconfig > ~/.gitconfig
mkdir -p ~/.git-template
2014-12-27 10:01:16 +01:00
cat rc/vimrc > ~/.vimrc
mkdir -p ~/.config/nvim/
cat conf/init.vim > ~/.config/nvim/init.vim
2016-06-15 10:26:52 +02:00
cat conf/makepkg.conf > ~/.makepkg.conf
2019-08-26 22:04:05 +02:00
mkdir -p ~/.config/mpv/
cat conf/mpv.conf > ~/.config/mpv/mpv.conf
2014-12-27 10:01:16 +01:00
if [ ! -f ~/.oidentd.conf ]; then
2023-02-21 18:08:54 +01:00
cat conf/oidentd.conf > ~/.oidentd.conf
2014-12-27 10:01:16 +01:00
fi
mkdir -p ~/.gnupg
cat gpg/gpg.conf > ~/.gnupg/gpg.conf
cat gpg/gpg-agent.conf > ~/.gnupg/gpg-agent.conf
2019-07-01 10:47:27 +02:00
cat gpg/dirmngr.conf > ~/.gnupg/dirmngr.conf
killall -HUP dirmngr
#cat rc/xinitrc > ~/.xinitrc
2014-12-27 10:01:16 +01:00
cat conf/pastebinit.xml > ~/.pastebinit.xml
2015-09-10 08:16:31 +02:00
cat conf/Xresources > ~/.Xresources
2014-12-27 10:01:16 +01:00
mkdir -p ~/.inxi
cat conf/inxi.conf > ~/.inxi/inxi.conf
2019-11-26 18:49:16 +01:00
gpg --quiet --import .mikaela/keys/*.asc&
mkdir -p ~/.ssh/sockets/
2014-12-27 10:01:16 +01:00
chmod a+xr chmod
bash -x ./chmod&
if hash pre-commit 2>/dev/null; then
pre-commit init-templatedir ~/.git-template
pre-commit gc
fi
2014-12-27 10:01:16 +01:00
if [ -f $HOME/.MIKAELAGREP ]
then
2023-02-21 18:08:54 +01:00
mv $HOME/.MIKAELAGREP $MIKAELA_GREP
2014-12-27 10:01:16 +01:00
fi
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
set +x
# vim : set ft=sh :
#chmod 700 $HOME -R