mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-21 18:59:22 +01:00
install: cat to cp
This commit is contained in:
parent
71059816aa
commit
54f9edac19
@ -10,55 +10,55 @@ git verify-commit HEAD || exit 1
|
|||||||
|
|
||||||
# Place my personal more questionable aliases in place, except that I don't
|
# Place my personal more questionable aliases in place, except that I don't
|
||||||
# actually use them as I keep forgetting about them.
|
# actually use them as I keep forgetting about them.
|
||||||
cat .mikaela/bash_aliases >~/.bash_aliases
|
cp -v .mikaela/bash_aliases $HOME/.bash_aliases
|
||||||
cat .mikaela/zsh_aliases >~/.zsh_aliases
|
cp -v .mikaela/zsh_aliases $HOME/.zsh_aliases
|
||||||
|
|
||||||
# I still question whether xinitrc gets read under wayland, but I am not
|
# 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
|
# about to start removing this legacy config, just in case of something
|
||||||
# unexpected.
|
# unexpected.
|
||||||
cat rc/xinitrc >~/.xinitrc
|
cp -v rc/xinitrc $HOME/.xinitrc
|
||||||
|
|
||||||
# My gnupg configuration with questionable options such as always
|
# My gnupg configuration with questionable options such as always
|
||||||
# encrypting to me, so paws off.
|
# encrypting to me, so paws off.
|
||||||
mkdir -p ~/.gnupg
|
mkdir -p ~/.gnupg
|
||||||
cat .mikaela/gpg.conf >~/.gnupg/gpg.conf
|
cp -v .mikaela/gpg.conf $HOME/.gnupg/gpg.conf
|
||||||
|
|
||||||
# my name and all in pastes made through pastebinit, if it still even exists
|
# my name and all in pastes made through pastebinit, if it still even exists
|
||||||
cat .mikaela/pastebinit.xml >~/.pastebinit.xml
|
cp -v .mikaela/pastebinit.xml $HOME/.pastebinit.xml
|
||||||
|
|
||||||
# may change your language to Finnish or do other fun someone else than I
|
# may change your language to Finnish or do other fun someone else than I
|
||||||
# wouldn't expect
|
# wouldn't expect
|
||||||
cat .mikaela/environment >~/.environment
|
cp -v .mikaela/environment $HOME/.environment
|
||||||
|
|
||||||
# my git configuration including the names, addresses, public keys, etc.
|
# my git configuration including the names, addresses, public keys, etc.
|
||||||
mkdir ~/.config/git
|
mkdir ~/.config/git
|
||||||
git config --global --add include.path '~/.shell-things/.mikaela/gitconfig'
|
git config --global --add include.path '~/.shell-things/.mikaela/gitconfig'
|
||||||
cat .gitattributes >~/.config/git/attributes
|
cp -v .gitattributes $HOME/.config/git/attributes
|
||||||
|
|
||||||
# unless thou art I, thou don't want my authorized_keys on your system.
|
# unless thou art I, thou don't want my authorized_keys on your system.
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
cat .mikaela/keys/authorized_keys >~/.ssh/authorized_keys
|
cp -v .mikaela/keys/authorized_keys $HOME/.ssh/authorized_keys
|
||||||
cat etc/ssh/ssh_config >~/.ssh/config
|
cp -v etc/ssh/ssh_config $HOME/.ssh/config
|
||||||
|
|
||||||
# Text editor configuration (with a lot of bloat) that shouldn't be reached
|
# 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.
|
# anyway since every project should have its own not so bloated editorconfig.
|
||||||
cat .editorconfig >~/.editorconfig
|
cp -v .editorconfig $HOME/.editorconfig
|
||||||
|
|
||||||
# Is Firefox installed to the location I generally use? Then apply my
|
# Is Firefox installed to the location I generally use? Then apply my
|
||||||
# autoconfigs. These are very surprising and unexpected unless thou art I,
|
# autoconfigs. These are very surprising and unexpected unless thou art I,
|
||||||
# thou have been warned.
|
# thou have been warned.
|
||||||
if [ -d ~/.local/firefox/defaults/pref/ ]; then
|
if [ -d ~/.local/firefox/defaults/pref/ ]; then
|
||||||
cat conf/autoconfig.js >~/.local/firefox/defaults/pref/autoconfig.js
|
cp -v conf/autoconfig.js $HOME/.local/firefox/defaults/pref/autoconfig.js
|
||||||
#cat conf/librewolf.overrides.cfg >~/.local/firefox/librewolf.overrides.cfg
|
#cp -v conf/librewolf.overrides.cfg $HOME/.local/firefox/librewolf.overrides.cfg
|
||||||
cat conf/firefox-forbidden-policies.js >~/.local/firefox/firefox-forbidden-policies.js
|
cp -v conf/firefox-forbidden-policies.js $HOME/.local/firefox/firefox-forbidden-policies.js
|
||||||
fi
|
fi
|
||||||
#cat conf/librewolf.overrides.cfg >~/public_html/autoconfig.js
|
#cp -v conf/librewolf.overrides.cfg $HOME/public_html/autoconfig.js
|
||||||
cat conf/firefox-forbidden-policies.js >~/public_html/autoconfig.js
|
cp -v conf/firefox-forbidden-policies.js $HOME/public_html/autoconfig.js
|
||||||
mkdir -p ~/.librewolf/ ~/.var/app/io.gitlab.librewolf-community/.librewolf/
|
mkdir -p ~/.librewolf/ ~/.var/app/io.gitlab.librewolf-community/.librewolf/
|
||||||
#cat conf/librewolf.overrides.cfg >~/.librewolf/librewolf.overrides.cfg
|
#cp -v conf/librewolf.overrides.cfg $HOME/.librewolf/librewolf.overrides.cfg
|
||||||
cat conf/firefox-forbidden-policies.js >~/.librewolf/librewolf.overrides.cfg
|
cp -v conf/firefox-forbidden-policies.js $HOME/.librewolf/librewolf.overrides.cfg
|
||||||
#cat conf/librewolf.overrides.cfg >~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
|
#cp -v conf/librewolf.overrides.cfg $HOME/.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
|
cp -v conf/firefox-forbidden-policies.js $HOME/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
|
||||||
|
|
||||||
# Mainly KDE Plasma Integration extension support, but there may be GNOME
|
# Mainly KDE Plasma Integration extension support, but there may be GNOME
|
||||||
# and similar there too
|
# and similar there too
|
||||||
|
82
install
82
install
@ -5,16 +5,16 @@ set -x
|
|||||||
|
|
||||||
# If my allowed_signers are present, use them, if not, clone them, and try
|
# If my allowed_signers are present, use them, if not, clone them, and try
|
||||||
# again. The gitconfig expects them here.
|
# again. The gitconfig expects them here.
|
||||||
if [ -d ~/src/codeberg.org/Aminda/ssh-allowed_signers ]; then
|
if [ -d $HOME/src/codeberg.org/Aminda/ssh-allowed_signers ]; then
|
||||||
echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers"
|
echo "git config --global gpg.ssh.allowedSignersFile $HOME/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers"
|
||||||
git verify-commit HEAD || exit 1
|
git verify-commit HEAD || exit 1
|
||||||
sleep 3
|
sleep 3
|
||||||
else
|
else
|
||||||
echo "Keys not found, cloning..."
|
echo "Keys not found, cloning..."
|
||||||
# -vp - verbose, parent. This comment won't be repeated.
|
# -vp - verbose, parent. This comment won't be repeated.
|
||||||
mkdir -vp ~/src/codeberg.org/Aminda/
|
mkdir -vp $HOME/src/codeberg.org/Aminda/
|
||||||
git clone https://codeberg.org/Aminda/ssh-allowed_signers.git ~/src/codeberg.org/Aminda/ssh-allowed_signers
|
git clone https://codeberg.org/Aminda/ssh-allowed_signers.git $HOME/src/codeberg.org/Aminda/ssh-allowed_signers
|
||||||
echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers"
|
echo "git config --global gpg.ssh.allowedSignersFile $HOME/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers"
|
||||||
git verify-commit HEAD || exit 1
|
git verify-commit HEAD || exit 1
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
@ -23,64 +23,64 @@ fi
|
|||||||
# my public keys as authorized. See bottom of this script.
|
# my public keys as authorized. See bottom of this script.
|
||||||
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
|
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
|
||||||
|
|
||||||
# catting the files around, cat used in hopes of not touching permissions
|
# Copying files in places
|
||||||
cat rc/bashrc > ~/.bashrc
|
cp -v rc/bashrc $HOME/.bashrc
|
||||||
cat conf/tmux.conf > ~/.tmux.conf
|
cp -v conf/tmux.conf $HOME/.tmux.conf
|
||||||
cat rc/zshrc > ~/.zshrc
|
cp -v rc/zshrc $HOME/.zshrc
|
||||||
cat rc/profile > ~/.profile
|
cp -v rc/profile $HOME/.profile
|
||||||
|
|
||||||
# Git config, legacy support for old location as well.
|
# Git config, legacy support for old location as well.
|
||||||
# The other script appends sourced file, so if thou aren't I, thou should
|
# The other script appends sourced file, so if thou aren't I, thou should
|
||||||
# consider it as well; `git config --global --add include.path '~/yourgitconfig'`
|
# consider it as well; `git config --global --add include.path '$HOME/yourgitconfig'`
|
||||||
mkdir -vp ~/.config/git
|
mkdir -vp $HOME/.config/git
|
||||||
cat conf/gitconfig > ~/.config/git/config
|
cp -v conf/gitconfig $HOME/.config/git/config
|
||||||
touch ~/.gitconfig
|
touch $HOME/.gitconfig
|
||||||
rm ~/.gitconfig
|
rm $HOME/.gitconfig
|
||||||
ln -nsfv ~/.config/git/config ~/.gitconfig
|
ln -nsfv $HOME/.config/git/config $HOME/.gitconfig
|
||||||
# Used for `git init` and `git clone`, will contain pre-commit hooks
|
# Used for `git init` and `git clone`, will contain pre-commit hooks
|
||||||
mkdir -vp ~/.git-template
|
mkdir -vp $HOME/.git-template
|
||||||
|
|
||||||
# {n,neo}vim
|
# {n,neo}vim
|
||||||
cat rc/vimrc > ~/.vimrc
|
cp -v rc/vimrc $HOME/.vimrc
|
||||||
mkdir -vp ~/.config/nvim/
|
mkdir -vp $HOME/.config/nvim/
|
||||||
cat conf/init.vim > ~/.config/nvim/init.vim
|
cp -v conf/init.vim $HOME/.config/nvim/init.vim
|
||||||
cat conf/makepkg.conf > ~/.makepkg.conf
|
cp -v conf/makepkg.conf $HOME/.makepkg.conf
|
||||||
|
|
||||||
# the media player
|
# the media player
|
||||||
mkdir -vp ~/.config/mpv/
|
mkdir -vp $HOME/.config/mpv/
|
||||||
cat conf/mpv.conf > ~/.config/mpv/mpv.conf
|
cp -v conf/mpv.conf $HOME/.config/mpv/mpv.conf
|
||||||
|
|
||||||
# if I am performing ident spoofing already, I don't want to touch it
|
# if I am performing ident spoofing already, I don't want to touch it
|
||||||
if [ ! -f ~/.oidentd.conf ]; then
|
if [ ! -f $HOME/.oidentd.conf ]; then
|
||||||
cat conf/oidentd.conf > ~/.oidentd.conf
|
cp -v conf/oidentd.conf $HOME/.oidentd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In addition to git, my gnupg configuration should be questioned
|
# In addition to git, my gnupg configuration should be questioned
|
||||||
mkdir -vp ~/.gnupg
|
mkdir -vp $HOME/.gnupg
|
||||||
cat gpg/gpg.conf > ~/.gnupg/gpg.conf
|
cp -v gpg/gpg.conf $HOME/.gnupg/gpg.conf
|
||||||
cat gpg/gpg-agent.conf > ~/.gnupg/gpg-agent.conf
|
cp -v gpg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf
|
||||||
cat gpg/dirmngr.conf > ~/.gnupg/dirmngr.conf
|
cp -v gpg/dirmngr.conf $HOME/.gnupg/dirmngr.conf
|
||||||
# Issues with GPG? SIGHUP dirmngr
|
# Issues with GPG? SIGHUP dirmngr
|
||||||
killall -HUP dirmngr
|
killall -HUP dirmngr
|
||||||
|
|
||||||
# I don't remember using these in ages and I don't think they apply to
|
# I don't remember using these in ages and I don't think they apply to
|
||||||
# wayland
|
# wayland
|
||||||
#cat rc/xinitrc > ~/.xinitrc
|
#cp -v rc/xinitrc $HOME/.xinitrc
|
||||||
cat conf/pastebinit.xml > ~/.pastebinit.xml
|
cp -v conf/pastebinit.xml $HOME/.pastebinit.xml
|
||||||
cat conf/Xresources > ~/.Xresources
|
cp -v conf/Xresources $HOME/.Xresources
|
||||||
|
|
||||||
# Nice sysinfo script
|
# Nice sysinfo script
|
||||||
mkdir -vp ~/.inxi
|
mkdir -vp $HOME/.inxi
|
||||||
cat conf/inxi.conf > ~/.inxi/inxi.conf
|
cp -v conf/inxi.conf $HOME/.inxi/inxi.conf
|
||||||
|
|
||||||
# laziness
|
# laziness
|
||||||
gpg --quiet --import .mikaela/keys/*.asc &
|
gpg --quiet --import .mikaela/keys/*.asc &
|
||||||
|
|
||||||
# Utilized by my ssh_config (not to be confused with sshd_config)
|
# Utilized by my ssh_config (not to be confused with sshd_config)
|
||||||
mkdir -vp ~/.ssh/sockets/
|
mkdir -vp $HOME/.ssh/sockets/
|
||||||
|
|
||||||
# It will get used later
|
# It will get used later
|
||||||
mkdir -vp ~/.local/bin/
|
mkdir -vp $HOME/.local/bin/
|
||||||
|
|
||||||
# Setting permissions
|
# Setting permissions
|
||||||
chmod a+xr chmod
|
chmod a+xr chmod
|
||||||
@ -91,14 +91,14 @@ git submodule update --init &
|
|||||||
|
|
||||||
# Aforementioned git template directory and pre-commit
|
# Aforementioned git template directory and pre-commit
|
||||||
if hash pre-commit 2> /dev/null; then
|
if hash pre-commit 2> /dev/null; then
|
||||||
pre-commit init-templatedir ~/.git-template
|
pre-commit init-templatedir $HOME/.git-template
|
||||||
pre-commit gc
|
pre-commit gc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If symlinks are installed, remove dead/dangling ones from ~/.local/bin
|
# If symlinks are installed, remove dead/dangling ones from $HOME/.local/bin
|
||||||
# so corepack won't get confused if those are present
|
# so corepack won't get confused if those are present
|
||||||
if hash symlinks 2> /dev/null; then
|
if hash symlinks 2> /dev/null; then
|
||||||
symlinks -d ~/.local/bin/
|
symlinks -d $HOME/.local/bin/
|
||||||
else
|
else
|
||||||
echo "WARNING! Executable named symlinks not found in PATH."
|
echo "WARNING! Executable named symlinks not found in PATH."
|
||||||
sleep 3
|
sleep 3
|
||||||
@ -108,8 +108,8 @@ fi
|
|||||||
if hash corepack 2> /dev/null; then
|
if hash corepack 2> /dev/null; then
|
||||||
# Will install symlinks for pnpm, yarn, etc., but not npm unless
|
# Will install symlinks for pnpm, yarn, etc., but not npm unless
|
||||||
# explicitly requested as below
|
# explicitly requested as below
|
||||||
corepack enable --install-directory ~/.local/bin/
|
corepack enable --install-directory $HOME/.local/bin/
|
||||||
corepack enable npm --install-directory ~/.local/bin/
|
corepack enable npm --install-directory $HOME/.local/bin/
|
||||||
# pnpm can utilize the same packagemanager field as corepack, even when
|
# pnpm can utilize the same packagemanager field as corepack, even when
|
||||||
# used alone
|
# used alone
|
||||||
corepack pnpm config set manage-package-manager-versions=true
|
corepack pnpm config set manage-package-manager-versions=true
|
||||||
|
Loading…
Reference in New Issue
Block a user