Skip to content

Commit afde259

Browse files
authored
use typos for corrections (#833)
I used [typos](https://github.com/crate-ci/typos/). I manually checked all the corrections and they seem safe to me. There are still some left, but those in this PR are good
1 parent a0aa600 commit afde259

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+102
-90
lines changed

assets/gh-emoji.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10849,7 +10849,7 @@
1084910849
"tags": [],
1085010850
"unicode_version": "6.0"
1085110851
}, {
10852-
"aliases": ["womens"],
10852+
"aliases": ["women"],
1085310853
"category": "Symbols",
1085410854
"description": "women’s room",
1085510855
"emoji": "🚺",

before_v0.60/coloring/256_color_testpattern.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function contrast_colour {
4040

4141
# Uncomment the below for more precise luminance calculations
4242

43-
# # Calculate percieved brightness
43+
# # Calculate perceived brightness
4444
# # See https://www.w3.org/TR/AERT#color-contrast
4545
# # and http://www.itu.int/rec/R-REC-BT.601
4646
# # Luminance is in range 0..5000 as each value is 0..5

before_v0.60/coloring/gradient_40x160.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Get-Character {
1515
# ~1900 ms
1616
function main {
1717
# This is the same script as gradient.ps1 but hard coded
18-
# to 40x160 for nushell comparisions
18+
# to 40x160 for nushell comparisons
1919
for ($y = 0; $y -le 39; $y++) {
2020
$Color = 25
2121
Set-Cursor -x $PSItem -y $y
@@ -31,7 +31,7 @@ function main {
3131
# Note that the x loop has half the characters so it doesn't count
3232
function main2 {
3333
# This is the same script as gradient.ps1 but hard coded
34-
# to 40x160 for nushell comparisions
34+
# to 40x160 for nushell comparisons
3535
for ($y = 0; $y -le 39; $y++) {
3636
$Color = 25
3737
$row = @()
@@ -44,11 +44,11 @@ function main2 {
4444
}
4545
}
4646

47-
# Store the characters in a string and contatenate, then output a row at a time
47+
# Store the characters in a string and concatenate, then output a row at a time
4848
# ~265 ms
4949
function main3 {
5050
# This is the same script as gradient.ps1 but hard coded
51-
# to 40x160 for nushell comparisions
51+
# to 40x160 for nushell comparisons
5252
for ($y = 0; $y -le 39; $y++) {
5353
$Color = 25
5454
$row = ""
@@ -65,7 +65,7 @@ function main3 {
6565
# ~240 ms
6666
function main4 {
6767
# This is the same script as gradient.ps1 but hard coded
68-
# to 40x160 for nushell comparisions
68+
# to 40x160 for nushell comparisons
6969
$row = [System.Text.StringBuilder]""
7070
for ($y = 0; $y -le 39; $y++) {
7171
$Color = 25

before_v0.60/coloring/nu_index_fg2.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# this script uses foreground ansi index colors to print
2-
# a table of 16 rows by 16 colums where each item is a
2+
# a table of 16 rows by 16 columns where each item is a
33
# different color
44
def show_index_colors [] {
55
let prefix = "38;5;"

before_v0.60/prompt/left_and_right_prompt.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def construct_prompt [] {
2020
# get the terminal width
2121
let term_width = (term size -w)
2222

23-
# get the curren time
23+
# get the current time
2424
let current_time = (date now | date format '%I:%M:%S%.3f %p')
2525

2626
# let's construct the left and right prompt
@@ -39,7 +39,7 @@ def construct_prompt [] {
3939
# the right prompt length without the ansi escapes
4040
let right_len = ($right_colored | ansi strip | str length)
4141

42-
# let's calcuate the length of the right prompt so we know how much to pad the left prompt
42+
# let's calculate the length of the right prompt so we know how much to pad the left prompt
4343
let calculated_right_len = ($term_width - $left_len + ($right_colored_len - $right_len))
4444

4545
# finally, let's make the prompt

before_v0.60/stdlib_candidate/get-latest-release-linux.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get-latest-linux [] {
2929
# update our progress
3030
$"Copying files from /tmp/($root_file_name)/*/* to ~/.cargo/bin(char newline)"
3131
# this is for testing so it doesn't overwrite my real nu. this should really
32-
# be a paremeter
32+
# be a parameter
3333
mkdir release
3434
# construct the copy from and to paths
3535
let cp_from_path = $"/tmp/($root_file_name)/*/*"

before_v0.60/weather/get-weather.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let URL_WEATHER = "https://api.openweathermap.org/data/2.5/weather"
5656
def get_weather_by_ip [locIdx: int, units: string] {
5757
# units
5858
# f = imperial aka Fahrenheit
59-
# c = metric aka Celcius
59+
# c = metric aka Celsius
6060
let coords = (get_location_by_ip $locIdx)
6161
if ($coords | length) > 1 {
6262
[
@@ -226,7 +226,7 @@ def state_abbrev_lookup [state_name: string] {
226226
# > get_weather -l 1
227227
# This changes to location 1. Locations are listed in the locations custom command above
228228
# > get_weather -l 2 -u c
229-
# This uses location 2 and Celcius degrees. f = Fahrenheit, c = Celcius
229+
# This uses location 2 and Celsius degrees. f = Fahrenheit, c = Celsius
230230

231231
# Since I live in the USA I have not tested outside the country.
232232
# We'll take PRs for things that are broke or augmentations.

custom-completions/btm/btm-completions.nu

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export extern "btm" [
1414
--basic(-b) # Use a more basic look
1515
--battery # Show battery widget
1616
--case_sensitive(-S) # Enables case sensitivity
17-
--celsius(-c) # Sets temp type to celcius
17+
--celsius(-c) # Sets temp type to celsius
1818
--color: string@colorScheme # Use a pre-defined colorscheme
1919
--config(-C): string # Sets the location of the config file
20-
--curent_usage(-u) # Set CPU% to current system CPU%
20+
--current_usage(-u) # Set CPU% to current system CPU%
2121
--default_time_value(-t): int # Time value for graphs
2222
--default_widget_count: int # Sets nth selected widget type to use default widget
2323
--default_widget_type: string@widgetType # Set default select widget
@@ -37,11 +37,11 @@ export extern "btm" [
3737
--network_use_bytes # Network widget as bytes
3838
--network_use_logs # Network eidget with logs
3939
--process_command # Show processes as commands
40-
--rate(-r): int # Sets referesh
40+
--rate(-r): int # Sets refresh
4141
--regex(-R) # Enable regex by default
4242
--show_table_scroll_position # Show scroll position
43-
--time-delta(-d): int # Amout changed when zooming in/out
43+
--time-delta(-d): int # Amount changed when zooming in/out
4444
--tree(-T) # Show processes as tree
4545
--version(-V) # Prints version information
46-
--whole-word(-w) # Search results match entrie query
46+
--whole-word(-w) # Search results match entries query
4747
]

custom-completions/cargo/cargo-completions.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export extern "cargo clean" [
167167
# Build a package's documentation
168168
export extern "cargo doc" [
169169
--open # Open the docs in a browser after building them
170-
--no-deps # Do not build documentation for dependencie
170+
--no-deps # Do not build documentation for dependency
171171
--document-private-items # Include non-public items in the documentation
172172
--package(-p): string@"nu-complete cargo packages" # Document only the specified packages
173173
--workspace # Document all members in the workspace
@@ -307,7 +307,7 @@ export extern "cargo test" [
307307

308308
# Execute benchmarks of a package
309309
export extern "cargo bench" [
310-
bench_option_seperator?: string
310+
bench_option_separator?: string
311311
...options: any # Options to be passed to the benchmarks
312312
--no-run # Compile, but don't run benchmarks
313313
--no-fail-fast # Run all benchmarks regardless of failure

custom-completions/curl/curl-completions.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "curl" [
2323
--crlfile # (TLS) Provide a file using PEM format with a Certificate Revocation List
2424
--data-ascii # (HTTP) Alias for -d, --data
2525
--data-binary # (HTTP) Post data exactly as specified with no processing
26-
--data-raw # (HTTP) Post data like --data but without interpeting "@
26+
--data-raw # (HTTP) Post data like --data but without interpreting "@
2727
--data-urlencode # (HTTP) Post data URL-encoded
2828
--data(-d) # (HTTP) Sends the specified data in a POST request to the HTTP server
2929
--delegation # (GSS/kerberos) Tell the server how much it can delegate for user creds
@@ -254,7 +254,7 @@ extern "curl PEM, DER ENG P12" [
254254
--crlfile # (TLS) Provide a file using PEM format with a Certificate Revocation List
255255
--data-ascii # (HTTP) Alias for -d, --data
256256
--data-binary # (HTTP) Post data exactly as specified with no processing
257-
--data-raw # (HTTP) Post data like --data but without interpeting "@
257+
--data-raw # (HTTP) Post data like --data but without interpreting "@
258258
--data-urlencode # (HTTP) Post data URL-encoded
259259
--data(-d) # (HTTP) Sends the specified data in a POST request to the HTTP server
260260
--delegation # (GSS/kerberos) Tell the server how much it can delegate for user creds

custom-completions/git/git-completions.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export extern "git fetch" [
194194
--write-fetch-head # Write fetched refs in FETCH_HEAD (default)
195195
--no-write-fetch-head # Do not write FETCH_HEAD
196196
--force(-f) # Always update the local branch
197-
--keep(-k) # Keep dowloaded pack
197+
--keep(-k) # Keep downloaded pack
198198
--multiple # Allow several arguments to be specified
199199
--auto-maintenance # Run 'git maintenance run --auto' at the end (default)
200200
--no-auto-maintenance # Don't run 'git maintenance' at the end
@@ -266,7 +266,7 @@ export extern "git pull" [
266266
export extern "git switch" [
267267
switch?: string@"nu-complete git switch" # name of branch to switch to
268268
--create(-c) # create a new branch
269-
--detach(-d): string@"nu-complete git log" # switch to a commit in a detatched state
269+
--detach(-d): string@"nu-complete git log" # switch to a commit in a detached state
270270
--force-create(-C): string # forces creation of new branch, if it exists then the existing branch will be reset to starting point
271271
--force(-f) # alias for --discard-changes
272272
--guess # if there is no local branch which matches then name but there is a remote one then this is checked out

custom-completions/less/less-completions.nu

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
extern "less" [
33
--help(-?) # Display help and exit
44
--search-skip-screen(-a) # Search after end of screen
5-
--auto-buffers(-B) # Disable automtic buffer allocation
5+
--auto-buffers(-B) # Disable automatic buffer allocation
66
--clear-screen(-c) # Repaint from top
77
--CLEAR-SCREEN(-C) # Clear and repaint from top
88
--dumb(-d) # Suppress error for lacking terminal capability
99
--quit-at-eof(-e) # Exit on second EOF
1010
--QUIT-AT-EOF(-E) # Exit on EOF
1111
--force(-f) # Open non-regular files
1212
--quit-if-one-screen(-F) # Quit if file shorter than one screen
13-
--hilite-search(-g) # Hilight one search target
13+
--hilite-search(-g) # Highlight one search target
1414
--HILITE-SEARCH(-G) # No search highlighting
1515
--ignore-case(-i) # Search ignores lowercase case
1616
--IGNORE-CASE(-I) # Search ignores all case
@@ -22,8 +22,8 @@ extern "less" [
2222
--LINE-NUMBERS(-N) # Display line number for each line
2323
--quiet(-q) # Silent mode
2424
--silent # Silent mode
25-
--QUIET(-Q) # Completly silent mode
26-
--SILENT # Completly silent mode
25+
--QUIET(-Q) # Completely silent mode
26+
--SILENT # Completely silent mode
2727
--raw-control-chars(-r) # Display control chars
2828
--RAW-CONTROL-CHARS(-R) # Display control chars, guess screen appearance
2929
--squeeze-blank-lines(-s) # Multiple blank lines sqeezed
@@ -46,15 +46,15 @@ extern "less" [
4646
extern "less 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19" [
4747
--help(-?) # Display help and exit
4848
--search-skip-screen(-a) # Search after end of screen
49-
--auto-buffers(-B) # Disable automtic buffer allocation
49+
--auto-buffers(-B) # Disable automatic buffer allocation
5050
--clear-screen(-c) # Repaint from top
5151
--CLEAR-SCREEN(-C) # Clear and repaint from top
5252
--dumb(-d) # Suppress error for lacking terminal capability
5353
--quit-at-eof(-e) # Exit on second EOF
5454
--QUIT-AT-EOF(-E) # Exit on EOF
5555
--force(-f) # Open non-regular files
5656
--quit-if-one-screen(-F) # Quit if file shorter than one screen
57-
--hilite-search(-g) # Hilight one search target
57+
--hilite-search(-g) # Highlight one search target
5858
--HILITE-SEARCH(-G) # No search highlighting
5959
--ignore-case(-i) # Search ignores lowercase case
6060
--IGNORE-CASE(-I) # Search ignores all case
@@ -66,8 +66,8 @@ extern "less 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19" [
6666
--LINE-NUMBERS(-N) # Display line number for each line
6767
--quiet(-q) # Silent mode
6868
--silent # Silent mode
69-
--QUIET(-Q) # Completly silent mode
70-
--SILENT # Completly silent mode
69+
--QUIET(-Q) # Completely silent mode
70+
--SILENT # Completely silent mode
7171
--raw-control-chars(-r) # Display control chars
7272
--RAW-CONTROL-CHARS(-R) # Display control chars, guess screen appearance
7373
--squeeze-blank-lines(-s) # Multiple blank lines sqeezed

custom-completions/op/op-completions.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# many of the completions run op commands in the background which may prompt addtional verification/unlocks
1+
# many of the completions run op commands in the background which may prompt additional verification/unlocks
22
# an OP_ACCOUNT environment variable is recommended to avoid this
33

44
# commented out aliases work when imported with `use` but not `source`

custom-completions/pass/extensions/pass-update/pass-update-completions.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export extern "pass update" [
1010
--multiline(-m) # Update multiline passwords. If not set, only the first line of a password file is updated.
1111
--include(-i): string # Only update the passwords that match a regex.
1212
--exclude(-e): string # Do not update the passwords that match a regex.
13-
--edit(-E) # Edit the passwords useing the default editor.
13+
--edit(-E) # Edit the passwords using the default editor.
1414
--force(-f) # Force update.
1515
--version(-V) # Show version information.
1616
--help(-h) # Print a help message.

custom-completions/reflector/reflector-completions.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export extern "reflector" [
2626
--score: int # Limit the list to the n servers with the highest score.
2727
--number(-n): int # Return at most n mirrors.
2828
--protocol(-p): string@"nu-complete protocol" # Match one of the given protocols, e.g. "https" or "ftp". Multiple protocols may be selected using commas (e.g. "https,http") or by passing this option multiple times.
29-
--complection-percent: int # Set the minimum completion percent for the returned mirrors. Check the mirrorstatus webpage for the meaning of this parameter. Default value: 100.0.
29+
--completion-percent: int # Set the minimum completion percent for the returned mirrors. Check the mirrorstatus webpage for the meaning of this parameter. Default value: 100.0.
3030
--isos # Only return mirrors that host ISOs.
3131
--ipv4 # Only return mirrors that support IPv4.
3232
--ipv6 # Only return mirrors that support IPv6.

custom-completions/scoop/scoop-completions.nu

+4-4
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def scoopShims [] {
119119

120120
# Windows command line installer
121121
export extern "scoop" [
122-
alias?: string@scoopCommands # avaible scoop commands and aliases
122+
alias?: string@scoopCommands # available scoop commands and aliases
123123
--help(-h) # Show help for this command.
124124
--version(-v) # Show current scoop and added buckets versions
125125
]
@@ -357,7 +357,7 @@ export extern "scoop config NO_JUNCTIONS" [
357357
value?: string@scoopBooleans
358358
]
359359

360-
# Git repository containining scoop source code.
360+
# Git repository containing scoop source code.
361361
export extern "scoop config SCOOP_REPO" [
362362
value?: string@scoopRepos
363363
]
@@ -457,7 +457,7 @@ export extern "scoop config aria2-retry-wait" [
457457
value?: number
458458
]
459459

460-
# Number of connections used for downlaod.
460+
# Number of connections used for download.
461461
export extern "scoop config aria2-split" [
462462
value?: number
463463
]
@@ -467,7 +467,7 @@ export extern "scoop config aria2-max-connection-per-server" [
467467
value?: number
468468
]
469469

470-
# Downloaded files will be splitted by this configured size and downloaded using multiple connections.
470+
# Downloaded files will be split by this configured size and downloaded using multiple connections.
471471
export extern "scoop config aria2-min-split-size" [
472472
value?: string
473473
]

custom-completions/virsh/virsh-completions.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ extern "virsh pool-edit" [
19741974

19751975
# Storage pool information
19761976
extern "virsh pool-info" [
1977-
--bytes # Reture pool info in bytes
1977+
--bytes # Return pool info in bytes
19781978
...args
19791979
]
19801980

custom-completions/yarn/yarn-v4-completions.nu

+4-4
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def "nu-complete yarn npm audit severity" [] {
237237
export extern "yarn npm audit" [
238238
--all(-A) # Audit dependencies from all workspaces
239239
--recursive(-R) # Audit transitive dependencies as well
240-
--enviorment: string # Which enviorments to cover
240+
--environment: string # Which environments to cover
241241
--json # Format the output as an NDJSON stream
242242
--severity: string@"nu-complete yarn npm audit severity" # Minimal severity requested for packages to be displayed
243243
]
@@ -343,7 +343,7 @@ export extern "yarn plugin import" [
343343
plugin: string@"nu-complete yarn plugin import"
344344
]
345345

346-
# List the avalible offical plugins.
346+
# List the available official plugins.
347347
export extern "yarn plugin list" [
348348
--json # Format the output as an NDJSON stream
349349
]
@@ -410,7 +410,7 @@ export extern "yarn search" []
410410

411411
export extern "yarn set" []
412412

413-
# Enfore a package resolution
413+
# Enforce a package resolution
414414
export extern "yarn set resolution" [
415415
--save(-s) # Persist the resolution inside the top-level manifest
416416
descriptor: string
@@ -553,7 +553,7 @@ export extern "yarn workspaces foreach" [
553553
...commandName: string
554554
]
555555

556-
# List all avalible workspaces
556+
# List all available workspaces
557557
export extern "yarn workspaces list" [
558558
--since # Only include workspaces that have been changed since the specified ref.
559559
--recursive(-R) # Find packages via dependencies/devDependencies instead of using the workspaces field

custom-completions/zellij/zellij-completions.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export extern "zellij action rename-tab" [
127127
export extern "zellij action new-tab" [
128128
--cwd(-c): path # Change the working directory of the new tab
129129
--help(-h) # Print help information
130-
--layout(-l): string@"nu-complete zellij layouts" # Layout ot use for the new tab
130+
--layout(-l): string@"nu-complete zellij layouts" # Layout to use for the new tab
131131
--layout-dir: path # Default folder to look for layouts
132132
--name(-n): string # Name for the tab
133133
]

example-config/init.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export def egd [...rest] {
77
with-env [GIT_EXTERNAL_DIFF 'difft'] { git diff $rest }
88
}
99

10-
# we need to export the env we create witk load-env
10+
# we need to export the env we create with load-env
1111
# because we are `use`-ing here and not `source`-ing this file
1212
export-env {
1313
load-env {

make_release/20k_club.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# example usage: get_pr_counts true
1414
# If true is provided as an argument, the script will also generate CSV files for each
1515
# repo with one line per commit, username, email, date in order for you to figure out
16-
# if you need to update the mailmap file so you can merge mutliple users into one.
16+
# if you need to update the mailmap file so you can merge multiple users into one.
1717
# If false is provided as an argument, the script will summarize the PR counts and
1818
# display a table with the top 50 rows.
1919
# Whether you run in debug_csv mode or not, the output is written to csv files in the

make_release/release-note/create-pr

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ by opening PRs against the `release-notes-($version)` branch.
105105
log info "writing release note"
106106
$release_note | save --force $blog_path
107107

108-
log info "commiting release note"
108+
log info "committing release note"
109109
git -C $repo add $blog_path
110110
git -C $repo commit -m $"($title)\n\n($body)"
111111

0 commit comments

Comments
 (0)