pre-commit run --all-files

This commit is contained in:
Aminda Suomalainen 2024-06-11 21:14:38 +03:00
parent d1da869397
commit a2e39104ba
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
8 changed files with 33 additions and 36 deletions

1
.gitignore vendored
View File

@ -23,5 +23,4 @@
install.run install.run
LICENSE LICENSE
node_modules/ node_modules/

View File

@ -1,5 +1,3 @@
*.py* *.py*
*.jupyter *.jupyter
*.json *.json
# prettier-plugin-sh is very unhappy with it
rc/zshrc

View File

@ -1,6 +1,6 @@
<pastebinit> <pastebinit>
<pastebin>http://sprunge.us</pastebin> <pastebin>http://sprunge.us</pastebin>
<author></author> <author />
<jabberid></jabberid> <jabberid />
<format>text</format> <format>text</format>
</pastebinit> </pastebinit>

View File

@ -1,21 +1,21 @@
<config> <config>
<!-- Client Control --> <!-- Client Control -->
<client-threads v='2'/> <client-threads v='2' />
<fold-anon v='true'/> <fold-anon v='true' />
<!-- Folding Core --> <!-- Folding Core -->
<cpu-usage v='50'/> <cpu-usage v='50' />
<gpu-usage v='50'/> <gpu-usage v='50' />
<!-- Slot Control --> <!-- Slot Control -->
<power v='MEDIUM'/> <power v='MEDIUM' />
<!-- User Information --> <!-- User Information -->
<passkey v=''/> <passkey v='' />
<team v='201753'/> <team v='201753' />
<user v='Mikaela'/> <user v='Mikaela' />
<!-- Folding Slots --> <!-- Folding Slots -->
<slot id='0' type='CPU'/> <slot id='0' type='CPU' />
<slot id='1' type='GPU'/> <slot id='1' type='GPU' />
</config> </config>

View File

@ -7,7 +7,7 @@ set -x
# I know there are old versions that used something else, but I don't remember # I know there are old versions that used something else, but I don't remember
# that name and they are ancient. # that name and they are ancient.
if ! hash resolvectl 2>/dev/null; then if ! hash resolvectl 2> /dev/null; then
echo "You don't seem to have systemd-resolved (or resolvectl) installed." 1>&2 echo "You don't seem to have systemd-resolved (or resolvectl) installed." 1>&2
exit 1 exit 1
fi fi

34
install
View File

@ -13,42 +13,42 @@ fi
export MIKAELA_GREP=$HOME/.MIKAELA_GREP export MIKAELA_GREP=$HOME/.MIKAELA_GREP
cat rc/bashrc >~/.bashrc cat rc/bashrc > ~/.bashrc
cat conf/tmux.conf >~/.tmux.conf cat conf/tmux.conf > ~/.tmux.conf
cat rc/zshrc >~/.zshrc cat rc/zshrc > ~/.zshrc
cat rc/profile >~/.profile cat rc/profile > ~/.profile
mkdir -p ~/.config/git mkdir -p ~/.config/git
cat conf/gitconfig >~/.config/git/config cat conf/gitconfig > ~/.config/git/config
touch ~/.gitconfig touch ~/.gitconfig
rm ~/.gitconfig rm ~/.gitconfig
ln -nsfv ~/.config/git/config ~/.gitconfig ln -nsfv ~/.config/git/config ~/.gitconfig
mkdir -p ~/.git-template mkdir -p ~/.git-template
cat rc/vimrc >~/.vimrc cat rc/vimrc > ~/.vimrc
mkdir -p ~/.config/nvim/ mkdir -p ~/.config/nvim/
cat conf/init.vim >~/.config/nvim/init.vim cat conf/init.vim > ~/.config/nvim/init.vim
cat conf/makepkg.conf >~/.makepkg.conf cat conf/makepkg.conf > ~/.makepkg.conf
mkdir -p ~/.config/mpv/ mkdir -p ~/.config/mpv/
cat conf/mpv.conf >~/.config/mpv/mpv.conf cat conf/mpv.conf > ~/.config/mpv/mpv.conf
if [ ! -f ~/.oidentd.conf ]; then if [ ! -f ~/.oidentd.conf ]; then
cat conf/oidentd.conf >~/.oidentd.conf cat conf/oidentd.conf > ~/.oidentd.conf
fi fi
mkdir -p ~/.gnupg mkdir -p ~/.gnupg
cat gpg/gpg.conf >~/.gnupg/gpg.conf cat gpg/gpg.conf > ~/.gnupg/gpg.conf
cat gpg/gpg-agent.conf >~/.gnupg/gpg-agent.conf cat gpg/gpg-agent.conf > ~/.gnupg/gpg-agent.conf
cat gpg/dirmngr.conf >~/.gnupg/dirmngr.conf cat gpg/dirmngr.conf > ~/.gnupg/dirmngr.conf
killall -HUP dirmngr killall -HUP dirmngr
#cat rc/xinitrc > ~/.xinitrc #cat rc/xinitrc > ~/.xinitrc
cat conf/pastebinit.xml >~/.pastebinit.xml cat conf/pastebinit.xml > ~/.pastebinit.xml
cat conf/Xresources >~/.Xresources cat conf/Xresources > ~/.Xresources
mkdir -p ~/.inxi mkdir -p ~/.inxi
cat conf/inxi.conf >~/.inxi/inxi.conf cat conf/inxi.conf > ~/.inxi/inxi.conf
gpg --quiet --import .mikaela/keys/*.asc & gpg --quiet --import .mikaela/keys/*.asc &
mkdir -p ~/.ssh/sockets/ mkdir -p ~/.ssh/sockets/
chmod a+xr chmod chmod a+xr chmod
bash -x ./chmod & bash -x ./chmod &
git submodule update --init & git submodule update --init &
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 ~/.git-template
pre-commit gc pre-commit gc
fi fi

View File

@ -2,7 +2,7 @@
PATH=$HOME/.local/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/snap/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH PATH=$HOME/.local/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/snap/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
# Add RubyGems to PATH # Add RubyGems to PATH
if hash ruby 2>/dev/null; then if hash ruby 2> /dev/null; then
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH" PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi fi
@ -21,7 +21,7 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
ulimit -c unlimited ulimit -c unlimited
# Numlock on at boot # Numlock on at boot
if hash numlockx 2>/dev/null; then if hash numlockx 2> /dev/null; then
numlockx on numlockx on
fi fi