shell-things/.mikaela_install

89 lines
3.9 KiB
Plaintext
Raw Permalink 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! And even when
# thou art I, and know what thou art doing, this is a poor practice I really
# should stop.
2014-12-27 10:01:16 +01:00
set -x
2024-07-09 07:58:11 +02:00
# If the latest commit cannot be verified, exit to error.
2024-08-10 11:46:33 +02:00
echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers"
2024-07-30 13:20:32 +02:00
git verify-commit HEAD || exit 1
2024-07-09 07:58:11 +02:00
# Place my personal more questionable aliases in place, except that I don't
# actually use them as I keep forgetting about them.
2024-08-14 12:26:36 +02:00
cp -v .mikaela/bash_aliases $HOME/.bash_aliases
cp -v .mikaela/zsh_aliases $HOME/.zsh_aliases
2024-07-09 07:58:11 +02:00
# I still question whether xinitrc gets read under wayland, but I am not
# about to start removing this legacy config, just in case of something
# unexpected.
2024-08-14 12:26:36 +02:00
cp -v rc/xinitrc $HOME/.xinitrc
2024-07-09 07:58:11 +02:00
# My gnupg configuration with questionable options such as always
# encrypting to me, so paws off.
2014-12-27 10:01:16 +01:00
mkdir -p ~/.gnupg
2024-08-14 12:26:36 +02:00
cp -v .mikaela/gpg.conf $HOME/.gnupg/gpg.conf
2024-07-09 07:58:11 +02:00
# my name and all in pastes made through pastebinit, if it still even exists
2024-08-14 12:26:36 +02:00
cp -v .mikaela/pastebinit.xml $HOME/.pastebinit.xml
2024-07-09 07:58:11 +02:00
# may change your language to Finnish or do other fun someone else than I
# wouldn't expect
2024-08-14 12:26:36 +02:00
cp -v .mikaela/environment $HOME/.environment
2024-07-09 07:58:11 +02:00
# my git configuration including the names, addresses, public keys, etc.
2024-02-26 07:37:48 +01:00
mkdir ~/.config/git
2024-06-10 19:26:35 +02:00
git config --global --add include.path '~/.shell-things/.mikaela/gitconfig'
2024-08-14 12:26:36 +02:00
cp -v .gitattributes $HOME/.config/git/attributes
2024-07-09 07:58:11 +02:00
# unless thou art I, thou don't want my authorized_keys on your system.
2014-12-27 10:01:16 +01:00
mkdir -p ~/.ssh
2024-08-14 12:26:36 +02:00
cp -v .mikaela/keys/authorized_keys $HOME/.ssh/authorized_keys
cp -v etc/ssh/ssh_config $HOME/.ssh/config
2024-07-09 07:58:11 +02:00
# Text editor configuration (with a lot of bloat) that shouldn't be reached
# anyway since every project should have its own not so bloated editorconfig.
2024-08-14 12:26:36 +02:00
cp -v .editorconfig $HOME/.editorconfig
2024-07-09 07:58:11 +02:00
# Is Firefox installed to the location I generally use? Then apply my
# autoconfigs. These are very surprising and unexpected unless thou art I,
# thou have been warned.
if [ -d ~/.local/firefox/defaults/pref/ ]; then
2024-08-14 12:26:36 +02:00
cp -v conf/autoconfig.js $HOME/.local/firefox/defaults/pref/autoconfig.js
#cp -v conf/librewolf.overrides.cfg $HOME/.local/firefox/librewolf.overrides.cfg
cp -v conf/firefox-forbidden-policies.js $HOME/.local/firefox/firefox-forbidden-policies.js
fi
2024-08-14 12:26:36 +02:00
#cp -v conf/librewolf.overrides.cfg $HOME/public_html/autoconfig.js
cp -v conf/firefox-forbidden-policies.js $HOME/public_html/autoconfig.js
2023-11-04 12:12:52 +01:00
mkdir -p ~/.librewolf/ ~/.var/app/io.gitlab.librewolf-community/.librewolf/
2024-08-14 12:26:36 +02:00
#cp -v conf/librewolf.overrides.cfg $HOME/.librewolf/librewolf.overrides.cfg
cp -v conf/firefox-forbidden-policies.js $HOME/.librewolf/librewolf.overrides.cfg
#cp -v conf/librewolf.overrides.cfg $HOME/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
cp -v conf/firefox-forbidden-policies.js $HOME/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
2024-07-09 07:58:11 +02:00
# Mainly KDE Plasma Integration extension support, but there may be GNOME
# and similar there too
mkdir -p ~/.mozilla/native-messaging-hosts
if [ -d /usr/lib64/mozilla/native-messaging-hosts/ ]; then
cp -v /usr/lib64/mozilla/native-messaging-hosts/* ~/.mozilla/native-messaging-hosts
elif [ -d /usr/lib/mozilla/native-messaging-hosts/ ]; then
cp -v /usr/lib/mozilla/native-messaging-hosts/ ~/.mozilla/native-messaging-hosts
fi
# Desktop menu integration
2024-04-29 09:26:44 +02:00
mkdir -p ~/.local/share/applications
2024-05-19 13:07:21 +02:00
ln -nsfv ~/.shell-things/local/share/applications ~/.local/share/applications/shell-things
2024-06-17 10:25:49 +02:00
mkdir -p ~/.local/share/icons/hicolor/128x128/apps/
ln -nsfv ~/.local/firefox/browser/chrome/icons/default/default128.png ~/.local/share/icons/hicolor/128x128/apps/a-firefox.png
2024-07-09 07:58:11 +02:00
# Update desktop menu entries
2024-04-29 09:26:44 +02:00
if hash update-desktop-database 2>/dev/null; then
update-desktop-database ~/.local/share/applications
fi
2024-07-09 07:58:11 +02:00
# Set a marker that this script has been used for the main script to read
2014-12-27 10:01:16 +01:00
touch ~/.MIKAELA_GREP
2024-07-09 07:58:11 +02:00
2014-12-27 10:01:16 +01:00
set +x
2024-07-09 07:58:11 +02:00
# vim : set ft=bash :