Skip to content

Commit 8a22a32

Browse files
committed
style: fix formatting
1 parent 2d55db4 commit 8a22a32

File tree

11 files changed

+40
-102
lines changed

11 files changed

+40
-102
lines changed

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/linux/fzf.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,25 @@ Paste the selected **files and directories** onto the command-line.
1616
By default, `fzf` uses `find` to search for files. This can be re-configured by setting `FZF_CTRL_T_COMMAND` in `.bashrc`/`.zshrc`:
1717

1818
```shell title="~/.zshrc"
19-
2019
# Set fd as the default source for fzf
21-
2220
export FZF_DEFAULT_COMMAND='fd -type f --follow --hidden --exclude .git'
2321

2422
# Apply the command to CTRL-T as well
25-
2623
export FZF_CTRL_T_COMMAND="\$FZF_DEFAULT_COMMAND"
2724

2825
# Preview contents of files
29-
3026
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
3127

3228
# Set color scheme to Dracula
33-
3429
export FZF_DEFAULT_OPTS=\$FZF_DEFAULT_OPTS'
3530
--color=dark
3631
--color=fg:-1,bg:-1,hl:#5fff87,fg+:-1,bg+:-1,hl+:#ffaf5f
3732
--color=info:#af87ff,prompt:#5fff87,pointer:#ff87d7,marker:#ff87d7,spinner:#ff87d7
3833
'
3934

4035
# Start the finder in a tmux split pane:
41-
4236
export FZF_TMUX=1
43-
44-
````
37+
```
4538

4639
### **`Ctrl-r`**
4740

@@ -59,7 +52,7 @@ export FZF_ALT_C_COMMAND="fd -t d"
5952

6053
# Preview files
6154
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
62-
````
55+
```
6356

6457
### Using the finder
6558

docs/linux/git.md

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,28 @@ git commit --amend -m "New commit message" # Edit the last commit message
6969

7070
- Working with multiple GitHub accounts with SSH [[\*](https://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts--net-22574)]
7171

72-
1. [Create a new SSH key](./ssh) and add it to GitHub account #2. Save the private key file as something like `id_rsa_2`.
73-
74-
2. Update the SSH config:
75-
76-
```\ title="~/.ssh/config"
77-
78-
# Default GitHub
79-
80-
Host github.com
81-
HostName github.com
82-
User git
83-
IdentityFile ~/.ssh/id_rsa
84-
85-
# GitHub account #2
86-
87-
Host github-alt
88-
HostName github.com
89-
User git
90-
IdentityFile ~/.ssh/id_rsa_2
91-
92-
```
93-
94-
```
72+
- [Create a new SSH key](./ssh) and add it to GitHub account #2. Save the private key file as something like `id_rsa_2`.
73+
74+
- Update the SSH config:
75+
76+
```shell title=".ssh/config"
77+
# Default GitHub
78+
Host github.com
79+
HostName github.com
80+
User git
81+
IdentityFile ~/.ssh/id_rsa
82+
83+
# GitHub account #2
84+
Host github-alt
85+
HostName github.com
86+
User git
87+
IdentityFile ~/.ssh/id_rsa_2
88+
```
9589

96-
3. When pushing to GitHub account #2, change the remote to reflect the new host:
90+
- When pushing to GitHub account #2, change the remote to reflect the new host:
9791

98-
```shell
99-
# git remote add origin git@github.com:username/repository.git
100-
git remote add origin git@github-alt:username/repository.git
101-
git push origin main
102-
```
92+
```shell
93+
# git remote add origin git@github.com:username/repository.git
94+
git remote add origin git@github-alt:username/repository.git
95+
git push origin main
96+
```

docs/linux/linux.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ Icon=/opt/firefox_dev/firefox/browser/chrome/icons/default/default128.png
137137
Type=Application
138138
Categories=Application;Network;X-Developer;
139139
Comment=Firefox Developer Edition Web Browser.
140-
141-
````
140+
```
142141

143142
## Redirection
144143

@@ -156,7 +155,7 @@ Standard I/O streams:
156155

157156
```shell
158157
$ command < file.txt # Executing `command` with `file.txt` as the source of input
159-
````
158+
```
160159

161160
The output of one command can be redirected as the input for another with the `|` (pipe) character.
162161

docs/linux/tmux.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,37 @@ title: tmux
66
## Configuration
77

88
```shell title="~/.tmux.conf"
9-
109
# Default prefix is `Ctrl+b`
11-
1210
# Remap prefix to `Ctrl+a`
13-
1411
set-option -g prefix C-a
1512
unbind-key C-b
1613
bind-key C-a send-prefix
1714

1815
# Reload tmux config
19-
2016
bind r source-file ~/.tmux.conf \; display-message '~/.tmux.conf sourced!'
2117

2218
# Use Alt-arrow keys without prefix key to switch panes
23-
2419
bind -n M-Left select-pane -L
2520
bind -n M-Right select-pane -R
2621
bind -n M-Up select-pane -U
2722
bind -n M-Down select-pane -D
2823

2924
# Vim style pane selection
30-
3125
bind h select-pane -L
3226
bind j select-pane -D
3327
bind k select-pane -U
3428
bind l select-pane -R
3529

3630
# Use Alt-vim keys without prefix key to switch panes
37-
3831
bind -n M-h select-pane -L
3932
bind -n M-j select-pane -D
4033
bind -n M-k select-pane -U
4134
bind -n M-l select-pane -R
4235

4336
# Use `|` and `-` to split pane horizontally and vertically, respectively
44-
4537
bind-key | split-window -h
4638
bind-key - split-window -v
47-
48-
````
39+
```
4940

5041
## Key bindings
5142

@@ -73,7 +64,7 @@ bind-key - split-window -v
7364
<prefix> t # Show the time
7465
<prefix> [ # Enter copy mode to copy text or view the history
7566
<prefix> ] # Paste the most recently copied buffer of text
76-
````
67+
```
7768
7869
## Miscellaneous
7970

docs/linux/vim.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ In normal mode:
9595
## Miscellaneous
9696

9797
- `:set wrap`/`:set nowrap`
98-
- Default `leader` is `\` (Recommended remappings: `<space>`/`,`)
98+
- Default `leader` is `\` (recommended remappings: `<space>`/`,`).
9999
- `<CR>` (aka carriage return/cartridge return) means `Enter`/`Return`.
100-
- Alternative to `ESC`: `Ctrl-c`, `Ctrl-[` (Recommended remappings for `ESC`: `jk`/`jj`)
101-
- `:smile` (Doesn't work on Neovim)
100+
- Alternative to `ESC`: `Ctrl-c`, `Ctrl-[` (recommended remappings for `ESC`: `jk`/`jj`).
101+
- `:smile` (doesn't work on Neovim)
102102
- `:help 42`
103103

104104
## Links

docs/programming/html.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ title: HTML
1010
<textarea></textarea>
1111

1212
<!-- Bad -->
13-
<textarea></textarea>
13+
<textarea>
14+
</textarea>
1415
```

docusaurus.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const math = require('remark-math')
2-
const katex = require('rehype-katex')
1+
const math = require('remark-math');
2+
const katex = require('rehype-katex');
33

44
module.exports = {
55
title: '[rsapkf/73]',
@@ -60,7 +60,7 @@ module.exports = {
6060
},
6161
{
6262
label: 'CFOP algs',
63-
href: 'https://github.com/rsapkf/rupiks/',
63+
href: 'https://github.com/rsapkf/20/',
6464
},
6565
],
6666
},
@@ -201,4 +201,4 @@ module.exports = {
201201
crossorigin: 'anonymous',
202202
},
203203
],
204-
}
204+
};

package-lock.json

Lines changed: 0 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"start": "docusaurus start",
77
"build": "docusaurus build",
88
"swizzle": "docusaurus swizzle",
9-
"deploy": "docusaurus deploy",
10-
"format": "prettier --write \"**/*.{js,jsx,json,md,mdx}\""
9+
"deploy": "docusaurus deploy"
1110
},
1211
"dependencies": {
1312
"@docusaurus/core": "^2.0.0-beta.9",
@@ -19,9 +18,6 @@
1918
"rehype-katex": "^4.0.0",
2019
"remark-math": "^3.0.1"
2120
},
22-
"devDependencies": {
23-
"prettier": "^1.18.2"
24-
},
2521
"browserslist": {
2622
"production": [
2723
">0.2%",
@@ -34,4 +30,4 @@
3430
"last 1 safari version"
3531
]
3632
}
37-
}
33+
}

0 commit comments

Comments
 (0)