mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-17 20:07:20 +02:00
Compare commits
4 Commits
a9965d33e3
...
a2e39104ba
Author | SHA1 | Date | |
---|---|---|---|
a2e39104ba | |||
d1da869397 | |||
abedd6f0ef | |||
5728846e88 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,5 +23,4 @@
|
|||||||
install.run
|
install.run
|
||||||
LICENSE
|
LICENSE
|
||||||
|
|
||||||
|
|
||||||
node_modules/
|
node_modules/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
ci:
|
ci:
|
||||||
# Attempts to use networking and fails at name resolution, local hook
|
# Attempts to use networking and fails at name resolution, local hook
|
||||||
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
||||||
skip: [pnpm-prettier]
|
skip: [prettier]
|
||||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||||
# the frequency of unnecessary PRs.
|
# the frequency of unnecessary PRs.
|
||||||
# https://github.com/pre-commit-ci/issues/issues/83
|
# https://github.com/pre-commit-ci/issues/issues/83
|
||||||
@ -129,28 +129,12 @@ repos:
|
|||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: pnpm-prettier
|
- id: prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
exclude_types: [json]
|
exclude_types: [json]
|
||||||
|
|
||||||
#- repo: https://github.com/pre-commit/mirrors-prettier
|
|
||||||
# - repo: https://github.com/rbubley/mirrors-prettier
|
|
||||||
# rev: "v3.2.5"
|
|
||||||
# hooks:
|
|
||||||
# - id: prettier
|
|
||||||
# additional_dependencies: [
|
|
||||||
# # https://www.npmjs.com/package/prettier
|
|
||||||
# "prettier@3.2.5",
|
|
||||||
# # https://www.npmjs.com/package/prettier-plugin-nginx
|
|
||||||
# "prettier-plugin-nginx@1.0.3",
|
|
||||||
# # https://www.npmjs.com/package/prettier-plugin-toml
|
|
||||||
# "prettier-plugin-toml@2.0.1",
|
|
||||||
# # https://www.npmjs.com/package/prettier-plugin-sort-json
|
|
||||||
# #"prettier-plugin-sort-json@4.0.0",
|
|
||||||
# ]
|
|
||||||
|
|
||||||
# Black, opinionated Python code formatter
|
# Black, opinionated Python code formatter
|
||||||
# - repo: https://github.com/psf/black
|
# - repo: https://github.com/psf/black
|
||||||
# rev: 23.9.1
|
# rev: 23.9.1
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
*.py*
|
*.py*
|
||||||
*.jupyter
|
*.jupyter
|
||||||
*.json
|
*.json
|
||||||
# prettier-plugin-sh is very unhappy with it
|
|
||||||
rc/zshrc
|
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
"prettier-plugin-nginx",
|
"prettier-plugin-nginx",
|
||||||
"prettier-plugin-toml",
|
"prettier-plugin-toml",
|
||||||
"prettier-plugin-sh"
|
"prettier-plugin-sh",
|
||||||
|
"@prettier/plugin-xml"
|
||||||
],
|
],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{ "files": ".prettierrc", "options": { "parser": "json" } },
|
{ "files": ".prettierrc", "options": { "parser": "json" } },
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -1 +1 @@
|
|||||||
*.json.badidea linguist-language=json
|
*.json.badidea linguist-language=json
|
||||||
|
@ -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
34
install
@ -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
|
||||||
|
3
package.json
vendored
3
package.json
vendored
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "3.2.5",
|
"@prettier/plugin-xml": "3.4.1",
|
||||||
|
"prettier": "3.3.2",
|
||||||
"prettier-plugin-nginx": "1.0.3",
|
"prettier-plugin-nginx": "1.0.3",
|
||||||
"prettier-plugin-sh": "0.14.0",
|
"prettier-plugin-sh": "0.14.0",
|
||||||
"prettier-plugin-toml": "2.0.1"
|
"prettier-plugin-toml": "2.0.1"
|
||||||
|
66
pnpm-lock.yaml
generated
vendored
66
pnpm-lock.yaml
generated
vendored
@ -7,20 +7,31 @@ settings:
|
|||||||
importers:
|
importers:
|
||||||
.:
|
.:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
"@prettier/plugin-xml":
|
||||||
|
specifier: 3.4.1
|
||||||
|
version: 3.4.1(prettier@3.3.2)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.2.5
|
specifier: 3.3.2
|
||||||
version: 3.2.5
|
version: 3.3.2
|
||||||
prettier-plugin-nginx:
|
prettier-plugin-nginx:
|
||||||
specifier: 1.0.3
|
specifier: 1.0.3
|
||||||
version: 1.0.3
|
version: 1.0.3
|
||||||
prettier-plugin-sh:
|
prettier-plugin-sh:
|
||||||
specifier: 0.14.0
|
specifier: 0.14.0
|
||||||
version: 0.14.0(prettier@3.2.5)
|
version: 0.14.0(prettier@3.3.2)
|
||||||
prettier-plugin-toml:
|
prettier-plugin-toml:
|
||||||
specifier: 2.0.1
|
specifier: 2.0.1
|
||||||
version: 2.0.1(prettier@3.2.5)
|
version: 2.0.1(prettier@3.3.2)
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
"@prettier/plugin-xml@3.4.1":
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-Uf/6/+9ez6z/IvZErgobZ2G9n1ybxF5BhCd7eMcKqfoWuOzzNUxBipNo3QAP8kRC1VD18TIo84no7LhqtyDcTg==,
|
||||||
|
}
|
||||||
|
peerDependencies:
|
||||||
|
prettier: ^3.0.0
|
||||||
|
|
||||||
"@taplo/core@0.1.1":
|
"@taplo/core@0.1.1":
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
@ -33,6 +44,18 @@ packages:
|
|||||||
integrity: sha512-DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==,
|
integrity: sha512-DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"@xml-tools/parser@1.0.11":
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==,
|
||||||
|
}
|
||||||
|
|
||||||
|
chevrotain@7.1.1:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==,
|
||||||
|
}
|
||||||
|
|
||||||
mvdan-sh@0.10.1:
|
mvdan-sh@0.10.1:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
@ -63,14 +86,20 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
prettier: ^3.0.3
|
prettier: ^3.0.3
|
||||||
|
|
||||||
prettier@3.2.5:
|
prettier@3.3.2:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==,
|
integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=14" }
|
engines: { node: ">=14" }
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
regexp-to-ast@0.5.0:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==,
|
||||||
|
}
|
||||||
|
|
||||||
sh-syntax@0.4.2:
|
sh-syntax@0.4.2:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
@ -85,28 +114,43 @@ packages:
|
|||||||
}
|
}
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
"@prettier/plugin-xml@3.4.1(prettier@3.3.2)":
|
||||||
|
dependencies:
|
||||||
|
"@xml-tools/parser": 1.0.11
|
||||||
|
prettier: 3.3.2
|
||||||
|
|
||||||
"@taplo/core@0.1.1": {}
|
"@taplo/core@0.1.1": {}
|
||||||
|
|
||||||
"@taplo/lib@0.4.0-alpha.2":
|
"@taplo/lib@0.4.0-alpha.2":
|
||||||
dependencies:
|
dependencies:
|
||||||
"@taplo/core": 0.1.1
|
"@taplo/core": 0.1.1
|
||||||
|
|
||||||
|
"@xml-tools/parser@1.0.11":
|
||||||
|
dependencies:
|
||||||
|
chevrotain: 7.1.1
|
||||||
|
|
||||||
|
chevrotain@7.1.1:
|
||||||
|
dependencies:
|
||||||
|
regexp-to-ast: 0.5.0
|
||||||
|
|
||||||
mvdan-sh@0.10.1: {}
|
mvdan-sh@0.10.1: {}
|
||||||
|
|
||||||
prettier-plugin-nginx@1.0.3: {}
|
prettier-plugin-nginx@1.0.3: {}
|
||||||
|
|
||||||
prettier-plugin-sh@0.14.0(prettier@3.2.5):
|
prettier-plugin-sh@0.14.0(prettier@3.3.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
mvdan-sh: 0.10.1
|
mvdan-sh: 0.10.1
|
||||||
prettier: 3.2.5
|
prettier: 3.3.2
|
||||||
sh-syntax: 0.4.2
|
sh-syntax: 0.4.2
|
||||||
|
|
||||||
prettier-plugin-toml@2.0.1(prettier@3.2.5):
|
prettier-plugin-toml@2.0.1(prettier@3.3.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
"@taplo/lib": 0.4.0-alpha.2
|
"@taplo/lib": 0.4.0-alpha.2
|
||||||
prettier: 3.2.5
|
prettier: 3.3.2
|
||||||
|
|
||||||
prettier@3.2.5: {}
|
prettier@3.3.2: {}
|
||||||
|
|
||||||
|
regexp-to-ast@0.5.0: {}
|
||||||
|
|
||||||
sh-syntax@0.4.2:
|
sh-syntax@0.4.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user