shell-things/.mikaela_install

88 lines
3.7 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! 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-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.
2023-05-18 10:58:51 +02:00
cat .mikaela/bash_aliases >~/.bash_aliases
cat .mikaela/zsh_aliases >~/.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.
2023-05-18 10:58:51 +02:00
cat rc/xinitrc >~/.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
2023-05-18 10:58:51 +02:00
cat .mikaela/gpg.conf >~/.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
2023-05-18 10:58:51 +02:00
cat .mikaela/pastebinit.xml >~/.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
2023-05-18 10:58:51 +02:00
cat .mikaela/environment >~/.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'
cat .gitattributes >~/.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
2023-05-18 10:58:51 +02:00
cat .mikaela/keys/authorized_keys >~/.ssh/authorized_keys
cat etc/ssh/ssh_config >~/.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.
2023-05-18 10:58:51 +02:00
cat .editorconfig >~/.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
cat conf/autoconfig.js >~/.local/firefox/defaults/pref/autoconfig.js
#cat conf/librewolf.overrides.cfg >~/.local/firefox/librewolf.overrides.cfg
cat conf/firefox-forbidden-policies.js >~/.local/firefox/firefox-forbidden-policies.js
fi
#cat conf/librewolf.overrides.cfg >~/public_html/autoconfig.js
cat conf/firefox-forbidden-policies.js >~/public_html/autoconfig.js
2023-11-04 12:12:52 +01:00
mkdir -p ~/.librewolf/ ~/.var/app/io.gitlab.librewolf-community/.librewolf/
#cat conf/librewolf.overrides.cfg >~/.librewolf/librewolf.overrides.cfg
cat conf/firefox-forbidden-policies.js >~/.librewolf/librewolf.overrides.cfg
#cat conf/librewolf.overrides.cfg >~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
cat conf/firefox-forbidden-policies.js >~/.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 :