mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
doc: replace ``txt blocks with ``text blocks
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<https://gist.github.com/nicerobot/53cee11ee0abbdc997661e65b348f375>
|
||||
- Common exceptions:
|
||||
|
||||
```txt
|
||||
```text
|
||||
# We make use of `.` (source) to import without exports
|
||||
SC2034: foo appears unused. Verify it or export it.
|
||||
SC2154: var is referenced but not assigned.
|
||||
@@ -94,15 +94,15 @@ The general format is `<type>(<package>): <description>`, using these _types_:
|
||||
|
||||
Try to write your commit messages (in the present tense) like this:
|
||||
|
||||
```txt
|
||||
```text
|
||||
fix(node): update install.sh (fix #200)
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
feat(delta): add cheat sheet and install.sh
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
docs(ssh-adduser): document that foo does bar
|
||||
```
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ etc).
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/bin/foo
|
||||
~/.local/opt/foo
|
||||
|
||||
@@ -18,42 +18,42 @@ create a top-level directory if one does not exist.
|
||||
|
||||
### List
|
||||
|
||||
```txt
|
||||
```text
|
||||
# arc ls <archive file>
|
||||
arc ls example.zip
|
||||
```
|
||||
|
||||
### Unarchive (whole)
|
||||
|
||||
```txt
|
||||
```text
|
||||
# arc unarchive <archive file>
|
||||
arc unarchive example.zip
|
||||
```
|
||||
|
||||
### Extract (partial)
|
||||
|
||||
```txt
|
||||
```text
|
||||
# arc extract <archive file> <archived path> <extracted path>
|
||||
arc extract example.zip example/foo ~/Downloads/foo
|
||||
```
|
||||
|
||||
### Archive (recursive)
|
||||
|
||||
```txt
|
||||
```text
|
||||
# arc archive <archive file> <files or folders ...>
|
||||
arc archive example.zip ./README.md ./bin ./src
|
||||
```
|
||||
|
||||
### Compress (single file)
|
||||
|
||||
```txt
|
||||
```text
|
||||
# arc compress <single file> <format>
|
||||
arc compress ./example.tar xz
|
||||
```
|
||||
|
||||
### Decompress (single file)
|
||||
|
||||
```txt
|
||||
```text
|
||||
# arc decompress <archive file>
|
||||
arc decompress ./example.tar.xz
|
||||
```
|
||||
|
||||
@@ -62,7 +62,7 @@ Edit the config file:
|
||||
|
||||
`~/.config/bat/config`:
|
||||
|
||||
```txt
|
||||
```text
|
||||
# no numbers or headers, just highlighting and such
|
||||
--style="plain"
|
||||
```
|
||||
|
||||
@@ -13,7 +13,7 @@ To update or switch versions, run `webi bun@<tag>`. \
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/opt/bun/
|
||||
~/.local/opt/bun-<VERSION>/
|
||||
|
||||
@@ -33,7 +33,7 @@ sudo apt --fix-broken install -y
|
||||
|
||||
You may get an error like this:
|
||||
|
||||
```txt
|
||||
```text
|
||||
chromedriver: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
|
||||
```
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ dashmsg gen > pirv.wif
|
||||
dashmsg sign ./priv.wif 'vote2022-alice|bob|charlie'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
H2Opy9NX72iPZRcDVEHrFn2qmVwWMgc+DKILdVxl1yfmcL2qcpu9esw9wcD7RH0/dJHnIISe5j39EYahorWQM7I=
|
||||
```
|
||||
|
||||
@@ -58,7 +58,7 @@ Addresses:
|
||||
dashmsg inspect 'XK5DHnAiSj6HQNsNcDkawd9qdp8UFMdYftdVZFuRreTMJtbJhk8i'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
PrivateKey (hex): cc (coin type)
|
||||
: e84f59fec1c8cc7feb9ce1c829849ae336f73e56437301eb5db945c8e0dd2683
|
||||
: 01 (compressed)
|
||||
@@ -76,7 +76,7 @@ Address (b58c): Xn4A2vv5fb7LvmiiXPPMexYbSbiQ29rzDu
|
||||
dashmsg inspect 'IFLv0JVRM70bTZCTmzMfNX3NVkSULmnAR/3PSWpgC5GXBD7rRi5g4QsK968ITE3dfKdzhX7fAIXwhpnsP0WvQOc='
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
I (0): 1 (quadrant)
|
||||
R (1-32): 52efd0955133bd1b4d90939b331f357dcd5644942e69c047fdcf496a600b9197
|
||||
S (33-64): 043eeb462e60e10b0af7af084c4ddd7ca773857edf0085f08699ec3f45af40e7
|
||||
@@ -88,7 +88,7 @@ S (33-64): 043eeb462e60e10b0af7af084c4ddd7ca773857edf0085f08699ec3f45af40e7
|
||||
dashmsg inspect 'Xn4A2vv5fb7LvmiiXPPMexYbSbiQ29rzDu'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
Address (hex): 4c (coin type)
|
||||
: 7cb1500163c8d413314dc238f9268b6c723a48f0
|
||||
```
|
||||
|
||||
@@ -13,7 +13,7 @@ To update or switch versions, run `webi delta` (or `@0.9.1`, `@0.9.0`, etc).
|
||||
|
||||
These are the files that are created and/or modified with this installer:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.gitconfig
|
||||
~/.local/bin/delta
|
||||
@@ -73,7 +73,7 @@ Here's the current list, for convenience:
|
||||
|
||||
### Dark Syntax Themes
|
||||
|
||||
```txt
|
||||
```text
|
||||
1337
|
||||
Coldark-Cold
|
||||
Coldark-Dark
|
||||
@@ -97,7 +97,7 @@ zenburn
|
||||
|
||||
### Light Syntax Themes
|
||||
|
||||
```txt
|
||||
```text
|
||||
GitHub
|
||||
Monokai Extended Light
|
||||
OneHalfLight
|
||||
|
||||
@@ -67,7 +67,7 @@ dotenv-linter --skip QuoteCharacter --skip UnorderedKey
|
||||
|
||||
You can see the full list of linter rules with `dotenv-linter --show-checks`:
|
||||
|
||||
```txt
|
||||
```text
|
||||
DuplicatedKey
|
||||
EndingBlankLine
|
||||
ExtraBlankLine
|
||||
|
||||
@@ -31,7 +31,7 @@ dotenv -f .env -- node server.js --debug
|
||||
|
||||
## ENV syntax
|
||||
|
||||
```txt
|
||||
```text
|
||||
# comments and blank lines are ignored
|
||||
|
||||
# you can use quotes of either style
|
||||
|
||||
@@ -13,7 +13,7 @@ To update or switch versions, run `webi duckdns.sh@stable` (or `@v1.0.3`,
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/bin/duckdns.sh
|
||||
~/.config/duckdns.sh/
|
||||
|
||||
@@ -121,7 +121,7 @@ command -v fish
|
||||
|
||||
Then update the Terminal preferences:
|
||||
|
||||
```txt
|
||||
```text
|
||||
Terminal > Preferences > General > Shells open with:
|
||||
/Users/YOUR_USER/.local/bin/fish
|
||||
```
|
||||
|
||||
@@ -29,6 +29,6 @@ sudo journalctl -u my-app-name --since '2020-01-01' | fzf
|
||||
|
||||
### Use space-delimited regular expressions to search
|
||||
|
||||
```txt
|
||||
```text
|
||||
^README | .md$ | .txt$
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ git-config-gpg
|
||||
|
||||
Example output:
|
||||
|
||||
```txt
|
||||
```text
|
||||
GnuPG Public Key ID: CA025BC42F00BBBE
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
@@ -55,7 +55,7 @@ How to verify signed commits on GitHub:
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/bin/git-config-gpg
|
||||
~/Downloads/YOU.KEY_ID.gpg.asc
|
||||
@@ -75,7 +75,7 @@ set it to 400 days and call it good.
|
||||
|
||||
`~/.gnupg/gpg-agent.conf`:
|
||||
|
||||
```txt
|
||||
```text
|
||||
default-cache-ttl 34560000
|
||||
max-cache-ttl 34560000
|
||||
```
|
||||
@@ -137,7 +137,7 @@ Or, if you prefer to edit the text file directly:
|
||||
|
||||
`~/.gitconfig`
|
||||
|
||||
```txt
|
||||
```text
|
||||
[user]
|
||||
signingkey = CA025BC42F00BBBE
|
||||
[commit]
|
||||
@@ -153,7 +153,7 @@ versions of gpg, like so:
|
||||
git config --global gpg.program ~/.local/opt/gnupg/bin/gpg
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
[gpg]
|
||||
program = /Users/me/.local/opt/gnupg/bin/gpg
|
||||
```
|
||||
@@ -163,7 +163,7 @@ git config --global gpg.program ~/.local/opt/gnupg/bin/gpg
|
||||
`gpg` is generally expected to be used with a Desktop client. On Linux servers
|
||||
you may get this error:
|
||||
|
||||
```txt
|
||||
```text
|
||||
error: gpg failed to sign the data
|
||||
fatal: failed to write commit object
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ git commit -m "my summary for this commit"
|
||||
In your project repository create a `.gitignore` file with patterns of fies to
|
||||
ignore
|
||||
|
||||
```txt
|
||||
```text
|
||||
.env*
|
||||
*.bak
|
||||
*.tmp
|
||||
|
||||
@@ -59,7 +59,7 @@ repository's URL, like this:
|
||||
The deploy scripts should exist in your `scripts/` directory, named after the
|
||||
repo's name.
|
||||
|
||||
```txt
|
||||
```text
|
||||
scripts/github.com/YOUR_ORG/YOUR_PROJECT/deploy.sh
|
||||
```
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ You may also want to install the Go IDE tooling:
|
||||
./hello
|
||||
```
|
||||
You should see your output:
|
||||
```txt
|
||||
```text
|
||||
> Hello, World!
|
||||
```
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ curl https://webi.sh/gpg-pubkey | sh
|
||||
|
||||
This is what the output of `gpg-pubkey` looks like (except much longer):
|
||||
|
||||
```txt
|
||||
```text
|
||||
GnuPG Public Key ID: CA025BC42F00BBBE
|
||||
|
||||
~/Downloads/john@example.com.gpg.asc:
|
||||
@@ -49,7 +49,7 @@ Note: Your public key is the _entire_ section starting with and including
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/bin/gpg-pubkey
|
||||
~/.local/bin/gpg-pubkey-id
|
||||
@@ -143,7 +143,7 @@ format:
|
||||
gpg --list-secret-keys --keyid-format LONG
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
/Users/me/.gnupg/pubring.kbx
|
||||
----------------------------
|
||||
sec rsa3072/CA025BC42F00BBBE 2021-11-10 [SCEA]
|
||||
@@ -154,7 +154,7 @@ ssb rsa3072/674124162BF19A32 2021-11-10 [SEA]
|
||||
|
||||
The line with the Public Key ID is the one that starts with `sec`:
|
||||
|
||||
```txt
|
||||
```text
|
||||
sec rsa3072/CA025BC42F00BBBE 2021-11-10 [SCEA]
|
||||
```
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ Here we'll cover:
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/opt/gnupg/bin/gpg
|
||||
~/.local/opt/gnupg/bin/gpg-agent
|
||||
@@ -123,7 +123,7 @@ launchctl load -w ~/Library/LaunchAgents/gpg-agent.plist
|
||||
`gpg` is generally expected to be used with a Desktop client. On Linux servers
|
||||
you may get this error:
|
||||
|
||||
```txt
|
||||
```text
|
||||
error: gpg failed to sign the data
|
||||
fatal: failed to write commit object
|
||||
```
|
||||
|
||||
@@ -15,7 +15,7 @@ tagline: |
|
||||
|
||||
The installer will download them to `~/Downloads/webi/iterm2-themes`
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/Downloads/webi/iterm2-themes/Tomorrow\ Night.itermcolors
|
||||
~/Downloads/webi/iterm2-themes/Firewatch.itermcolors
|
||||
~/Downloads/webi/iterm2-themes/Dracula.itermcolors
|
||||
|
||||
14
jq/README.md
14
jq/README.md
@@ -27,7 +27,7 @@ You can also [try online](https://jqplay.org/).
|
||||
echo '{ "name": "foo" }' | jq '.name'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
"foo"
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ The `-r` or `--raw-output` flag unwraps strings:
|
||||
echo '{ "name": "foo" }' | jq -r '.name'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
foo
|
||||
```
|
||||
|
||||
@@ -49,7 +49,7 @@ foo
|
||||
echo '{ "name": "foo" }' | jq '.'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
{
|
||||
"name": "foo"
|
||||
}
|
||||
@@ -61,7 +61,7 @@ echo '{ "name": "foo" }' | jq '.'
|
||||
echo '[ { "name": "foo" } ]' | jq '.[0]'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
{
|
||||
"name": "foo"
|
||||
}
|
||||
@@ -73,7 +73,7 @@ echo '[ { "name": "foo" } ]' | jq '.[0]'
|
||||
echo '[ { "name": "foo" } ]' | jq -r '.[0].name'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
foo
|
||||
```
|
||||
|
||||
@@ -84,7 +84,7 @@ echo '[ { "name": "foo" }, { "name": "bar" } ]' \
|
||||
| jq -r '.[].name'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
foo
|
||||
bar
|
||||
```
|
||||
@@ -106,7 +106,7 @@ echo '[ { "name": "foo", "age": 0 }, { "name": "bar", "age": 2 } ]' \
|
||||
| jq '{ names: [.[] | .name], ages: [.[] | .age] }'
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
{
|
||||
"names": [
|
||||
"foo",
|
||||
|
||||
@@ -13,7 +13,7 @@ etc).
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/opt/node
|
||||
~/.jshintrc.defaults.json5
|
||||
|
||||
@@ -50,7 +50,7 @@ keypairs sign --exp 1h key.jwk.json '{ "sub": "me@example.com" }' > token.jwt 2>
|
||||
A JWT (JSON Web Token) has 3 sections (protected header, payload, and signature)
|
||||
separated by dots (`.`):
|
||||
|
||||
```txt
|
||||
```text
|
||||
eyJhbGciOiJFUzI1NiIsImtpZCI6ImpkeHhZY1NCZUJfeUdoZWlCVW14NjF0eHExZGFjR1hIX191bEJuWlZHMEUiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjIxNDczODU3MTIsInN1YiI6Im1lQGV4YW1wbGUuY29tIn0.oh8-PUMdrbQU6seRXjo68wPWAKbA-V9LMnd_wZEkPHc3C8A5xJzV7mDDMNOLEy4VcuNGxced_yjYulzcMa5FLQ
|
||||
```
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ You can use koji in one of two ways:
|
||||
|
||||
Here's the shortlist of options we've found most useful:
|
||||
|
||||
```txt
|
||||
```text
|
||||
-e, --emoji - use emoji for commit type (ex: `✨ feat:`)
|
||||
-a, --autocomplete - guess 'scope' based on commit history (slow on large projects)
|
||||
--hook - expect to be run from 'git commit', rather than wrap it
|
||||
|
||||
@@ -12,6 +12,6 @@ tagline: |
|
||||
|
||||
Use with Balena Etcher to burn ISO to USB, or boot with VirtualBox.
|
||||
|
||||
```txt
|
||||
```text
|
||||
Created ~/Downloads/el-capitan.iso
|
||||
```
|
||||
|
||||
@@ -20,7 +20,7 @@ webi myip
|
||||
|
||||
Example output:
|
||||
|
||||
```txt
|
||||
```text
|
||||
IPv4 (A) : 136.36.196.101
|
||||
IPv6 (AAAA): 2605:a601:a919:9800:f8be:f2c4:9ad7:9763
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ To update or switch versions, run `webi ots@stable` (or `@v2`, `@beta`, etc).
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/bin/ots
|
||||
~/.local/opt/ots
|
||||
|
||||
@@ -40,7 +40,7 @@ Note: Even on Windows it is best to use Unix-style `/` paths and `~` for
|
||||
pathman list
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
pathman-managed PATH entries:
|
||||
|
||||
$HOME/.local/bin
|
||||
|
||||
@@ -13,7 +13,7 @@ etc).
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/opt/node
|
||||
```
|
||||
|
||||
@@ -71,7 +71,7 @@ pyenv global system
|
||||
pyenv install --list
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
3.10.7
|
||||
activepython-3.6.0
|
||||
anaconda3-2020.11
|
||||
|
||||
@@ -35,7 +35,7 @@ sudo apt install -y libreadline-dev libbz2-dev libsqlite3-dev
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.bashrc (or your shell's equivalent)
|
||||
~/.config/envman/PATH.env
|
||||
~/.pyenv
|
||||
|
||||
@@ -35,7 +35,7 @@ sudo apt install -y libreadline-dev libbz2-dev libsqlite3-dev
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.bashrc (or your shell's equivalent)
|
||||
~/.config/envman/PATH.env
|
||||
~/.pyenv
|
||||
|
||||
@@ -85,7 +85,7 @@ sclient whatever.com -
|
||||
|
||||
Use just like netcat or telnet. A manual HTTP request, for example:
|
||||
|
||||
```txt
|
||||
```text
|
||||
> GET / HTTP/1.1
|
||||
> Host: whatever.com
|
||||
> Connection: close
|
||||
|
||||
@@ -79,7 +79,7 @@ serviceman list --system
|
||||
serviceman list --user
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
serviceman-managed services:
|
||||
|
||||
example-service
|
||||
@@ -97,7 +97,7 @@ sudo env PATH="$PATH" serviceman start example-service
|
||||
|
||||
## What a typical systemd .service file looks like
|
||||
|
||||
```txt
|
||||
```text
|
||||
[Unit]
|
||||
Description=example-service
|
||||
After=network-online.target
|
||||
@@ -126,7 +126,7 @@ WantedBy=multi-user.target
|
||||
|
||||
## What a typical launchd .plist file looks like
|
||||
|
||||
```txt
|
||||
```text
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated for serviceman. Edit as you wish, but leave this line. -->
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
|
||||
@@ -16,7 +16,7 @@ tagline: |
|
||||
|
||||
Gives a command permission to run on privileged ports (80, 443, etc).
|
||||
|
||||
```txt
|
||||
```text
|
||||
Usage:
|
||||
sudo setcap-netbind <COMMAND>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ used.
|
||||
|
||||
### Frequently used flags:
|
||||
|
||||
```txt
|
||||
```text
|
||||
-version
|
||||
Show version and exit.
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ The easiest way to get your SSH Public Key:
|
||||
curl https://webi.sh/ssh-pubkey | sh
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/Downloads/id_rsa.johndoe.pub:
|
||||
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTOhRnzDJNBNBXVCgkxkEaDM4IAp81MtE8fuqeQuFvq5gYLWoZND39N++bUvjMRCveWzZlQNxcLjXHlZA3mGj1b9aMImrvyoq8FJepe+RLEuptJe3md4EtTXo8VJuMXV0lJCcd9ct+eqJ0jH0ww4FDJXWMaFbiVwJBO0IaYevlwcf0QwH12FCARZUSwXfsIeCZNGxOPamIUCXumpQiAjTLGHFIDyWwLDCNPi8GyB3VmqsTNEvO/H8yY4VI7l9hpztE5W6LmGUfTMZrnsELryP5oRlo8W5oVFFS85Lb8bVfn43deGdlLGkwmcJuXzZfostSTHI5Mj7MWezPZyoSqFLl johndoe@MacBook-Air
|
||||
|
||||
@@ -19,7 +19,7 @@ and place it in `~/Downloads`.
|
||||
ssh-pubkey
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/Downloads/id_rsa.johndoe.pub:
|
||||
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTOhRnzDJNBNBXVCgkxkEaDM4IAp81MtE8fuqeQuFvq5gYLWoZND39N++bUvjMRCveWzZlQNxcLjXHlZA3mGj1b9aMImrvyoq8FJepe+RLEuptJe3md4EtTXo8VJuMXV0lJCcd9ct+eqJ0jH0ww4FDJXWMaFbiVwJBO0IaYevlwcf0QwH12FCARZUSwXfsIeCZNGxOPamIUCXumpQiAjTLGHFIDyWwLDCNPi8GyB3VmqsTNEvO/H8yY4VI7l9hpztE5W6LmGUfTMZrnsELryP5oRlo8W5oVFFS85Lb8bVfn43deGdlLGkwmcJuXzZfostSTHI5Mj7MWezPZyoSqFLl johndoe@MacBook-Air
|
||||
|
||||
@@ -33,7 +33,7 @@ source ~/.vim/plugins/ale.vim
|
||||
|
||||
`.vim/plugins/ale.vim`:
|
||||
|
||||
```txt
|
||||
```text
|
||||
" turn on the syntax checker
|
||||
syntax on
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ To update (replacing the current version) run `webi vim-essentials`.
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/bin/
|
||||
~/.local/opt/
|
||||
|
||||
@@ -12,7 +12,7 @@ To update (replacing the current version) run `webi vim-shell`.
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.vimrc
|
||||
~/.vim/plugins/shell.vim
|
||||
```
|
||||
|
||||
@@ -7,6 +7,17 @@ tagline: |
|
||||
|
||||
To update (replacing the current version) run `webi vim-shfmt`.
|
||||
|
||||
### Files
|
||||
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.vimrc
|
||||
~/.vim/pack/plugins/start/shfmt
|
||||
~/.vim/plugins/shfmt.vim
|
||||
~/.local/bin/shfmt
|
||||
~/.local/bin/shellcheck
|
||||
```
|
||||
|
||||
## Cheat Sheet
|
||||
|
||||
`vim-shfmt` uses [shfmt](https://webinstall.dev/shfmt) to format your `bash`
|
||||
@@ -22,17 +33,6 @@ let g:shfmt_extra_args = '-i 4 -sr -ci -s'
|
||||
let g:shfmt_fmt_on_save = 1
|
||||
```
|
||||
|
||||
### Files
|
||||
|
||||
```txt
|
||||
~/.config/envman/PATH.env
|
||||
~/.vimrc
|
||||
~/.vim/pack/plugins/start/shfmt
|
||||
~/.vim/plugins/shfmt.vim
|
||||
~/.local/bin/shfmt
|
||||
~/.local/bin/shellcheck
|
||||
```
|
||||
|
||||
### How to install and configure manually
|
||||
|
||||
1. Clone `vim-shfmt` into your `~/.vim/pack/plugins/start`:
|
||||
|
||||
@@ -12,7 +12,7 @@ To update (replacing the current version) run `webi vim-smartcase`.
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.vimrc
|
||||
~/.vim/plugins/smartcase.vim
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ To update (replacing the current version) run `webi vim-spell`.
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.vimrc
|
||||
~/.vim/plugins/spell.vim
|
||||
```
|
||||
|
||||
@@ -27,7 +27,7 @@ git clone --depth=1 https://github.com/vim-syntastic/syntastic.git ~/.vim/pack/p
|
||||
|
||||
`.vimrc`:
|
||||
|
||||
```txt
|
||||
```text
|
||||
" manually set plugin to use bash - not zsh, fish, etc
|
||||
set shell=bash
|
||||
|
||||
@@ -45,7 +45,7 @@ let g:syntastic_check_on_wq = 0
|
||||
|
||||
### How to configure language-specific linters
|
||||
|
||||
```txt
|
||||
```text
|
||||
let g:syntastic_javascript_checkers = ['jshint']
|
||||
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
|
||||
```
|
||||
|
||||
@@ -89,6 +89,6 @@ and create the swap file again.
|
||||
|
||||
You need to open `/etc/fstab` and add a line like this:
|
||||
|
||||
```txt
|
||||
```text
|
||||
/var/swapfile none swap sw 0 0
|
||||
```
|
||||
|
||||
@@ -35,7 +35,7 @@ Will output externally detected IPv4 and IPv6 addresses. See
|
||||
myip
|
||||
```
|
||||
|
||||
```txt
|
||||
```text
|
||||
IPv4 (A) : 136.36.196.101
|
||||
IPv6 (AAAA): 2605:a601:a919:9800:f8be:f2c4:9ad7:9763
|
||||
```
|
||||
|
||||
@@ -15,7 +15,7 @@ It respects `.[git]ignore`.
|
||||
|
||||
Here's the shortlist of options we've found most useful:
|
||||
|
||||
```txt
|
||||
```text
|
||||
-w, --watch ./src/ watch the given directory
|
||||
-e, --exts js,css watch only the given extensions
|
||||
-i, --ignore '*.md' do not watch the given pattern
|
||||
|
||||
@@ -14,7 +14,7 @@ To update or switch versions, run `webi xz@stable` (or `@v5.2`, `@beta`, etc).
|
||||
|
||||
Here's the shortlist of options we've found most useful:
|
||||
|
||||
```txt
|
||||
```text
|
||||
-z, --compress force compression
|
||||
-d, --decompress force decompression
|
||||
-l, --list list information about .xz files
|
||||
|
||||
@@ -12,7 +12,7 @@ To update or switch versions, run `webi zig@stable` (or `@v0.9`, `@beta`, etc).
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```txt
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/opt/zig
|
||||
```
|
||||
@@ -96,7 +96,7 @@ zig targets | jq -r '.libc[]'
|
||||
|
||||
Here's a few of the common targets:
|
||||
|
||||
```txt
|
||||
```text
|
||||
aarch64-linux-musl
|
||||
aarch64-windows-gnu
|
||||
aarch64-macos-gnu
|
||||
|
||||
Reference in New Issue
Block a user