change formatting

input examples are now given as

```bash
input $ARG1
```

While outputs use md's '> ' sign as a quote.
This commit is contained in:
2023-06-17 21:28:20 +02:00
parent 1ba3010b81
commit ba8026e0c3
102 changed files with 2388 additions and 3211 deletions

View File

@@ -6,23 +6,33 @@ tags: [ "Documentation", "Chat" ]
Sign up to an account somewhere.
> /connect bob@bobserver.org
```
/connect bob@bobserver.org
```
Check if someone wants to be your friend:
> /sub received
```
/sub received
```
Accept a friend's subscription request:
> /sub add alice@aliceserver.org
```
/sub add alice@aliceserver.org
```
Join a room:
> /join room1@bobserver.org
```
/join room1@bobserver.org
```
Save your configuration so you don't have to do this again:
> /save
```
/save
```
Check your `~/.config/profanity/profrc` for how to data's saved.
@@ -30,11 +40,17 @@ Check your `~/.config/profanity/profrc` for how to data's saved.
To automatically sign in, add your password to [pass](../data/pass.md).
> /account set *malin@oosm.org* eval_password pass *xmpp*
```
/account set *malin@oosm.org* eval_password pass *xmpp*
```
> /autoconnect set *malin@oosm.org*
```
/autoconnect set *malin@oosm.org*
```
> /save
```
/save
```
Remember to save the config for other commands too.
@@ -42,7 +58,9 @@ Remember to save the config for other commands too.
## Messages
> /msg alice@aliceserver.org
```
/msg alice@aliceserver.org
```
This opens in a new tab.
Switch tabs with alt+number.
@@ -51,75 +69,109 @@ Switch tabs with alt+number.
The [docs](https://profanity-im.github.io/guide/0131/reference.html) are massive, so it's often better to use:
> /help <Tab>
```
/help <Tab>
```
## Editing
For long text, you can use vim:
> /executable editor set vim
```
/executable editor set vim
```
> /editor
```
/editor
```
## Sending & Receiving Files
Tell it how to save files:
> /executable urlsave set "wget %u -O %p"
```
/executable urlsave set "wget %u -O %p"
```
Then get the file with:
> /urlsave *<Tab>*
```
/urlsave *<Tab>*
```
Same for `/urlopen`
## Theme
> profanity
```
profanity
```
> /theme list
```
/theme list
```
> theme load batman
```
theme load batman
```
# Encryption
## omemo
> /omemo gen
```
/omemo gen
```
> /omemo start
```
/omemo start
```
You can accept everyone's fingerprint all the time with
> /omemo trustmode firstusage
```
/omemo trustmode firstusage
```
This will still encrypt, but there will be no check that you have the right person the first time you speak with someone.
You can ensure omemo automatcally turns on:
> /omemo policy automatic
```
/omemo policy automatic
```
## otr
Install libotr-dev or libotr5-dev or whatever..
> sudo apt -y install lib5otr-dev
```
sudo apt -y install lib5otr-dev
```
Make your otr keys.
> /otr gen
```
/otr gen
```
Then you can start an otr converstation.
> /otr start bob@jobbies.org
```
/otr start bob@jobbies.org
```
Or if you already have a conversation windows open, switch to our using:
> /otr
```
/otr
```
Finally, verify!
> /otr question "Who are you?" bob
```
/otr question "Who are you?" bob
```
Bob is verified upon the answer, 'bob'.
@@ -127,9 +179,15 @@ Bob is verified upon the answer, 'bob'.
Get yours with
> /otr myfp
```
/otr myfp
```
> /otr theirfp
```
/otr theirfp
```
> /otr myfp
```
/otr myfp
```

View File

@@ -5,17 +5,25 @@ tags: [ "Documentation", "Chat" ]
See available pastebins:
> wgetpaste -S
```bash
wgetpaste -S
```
Upload script.sh to bpaste:
> wgetpaste -s bpaste script.sh
```bash
wgetpaste -s bpaste script.sh
```
Input clipboard to dpaste with the heading "Title"
> wgetpaste -s dpaste -d Title -x
```bash
wgetpaste -s dpaste -d Title -x
```
Paste in the file then load the result to the right-hand clipboard:
> wgetpaste -s dpaste -X
```bash
wgetpaste -s dpaste -X
```