Skip to content

Commit

Permalink
fix: Update Bash dictionary (#3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Jan 6, 2025
1 parent 681e8d2 commit 165c758
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dictionaries/bash/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ targets:
- name: bash-words
sources:
- ./src/bash-words.txt
- listFile: ../shell/common-source-files.txt
- ../shell/src/shell-bash-words.txt
format: plaintext
targetDirectory: './dict'
generateNonStrict: false
9 changes: 9 additions & 0 deletions dictionaries/bash/dict/bash-words.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dictionaries/bash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"scripts": {
"build": "cspell-tools-cli build",
"test": "shx head -n 100 src/bash-words.txt | cspell -c ./cspell-ext.json \"--locale=*\" \"--languageId=shellscript\" stdin",
"test": "shx cat src/bash-words.txt | cspell -c ./cspell-ext.json \"--locale=*\" \"--languageId=shellscript\" stdin",
"prepublishOnly": "echo pre-publish",
"prepare:dictionary": "pnpm run build"
},
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ targets:
sources:
- listFile: ./common-source-files.txt
- ./src/shell-bash-words.txt
- ../bash/src/bash-words.txt
format: plaintext
targetDirectory: './dict'
generateNonStrict: false
Expand Down
9 changes: 9 additions & 0 deletions dictionaries/shell/dict/bash-words.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dictionaries/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"scripts": {
"build": "cspell-tools-cli build",
"test": "shx head -n 100 src/legacy-words.txt | cspell -c ./cspell-ext.json \"--locale=*\" \"--languageId=shellscript\" stdin",
"test": "shx cat test/legacy-words.txt | cspell -c ./cspell-ext.json \"--locale=*\" \"--languageId=shellscript\" stdin",
"prepublishOnly": "echo pre-publish",
"prepare:dictionary": "pnpm run build"
},
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/src/command-words.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# General commands, functions, and tools
chsh
dbus
dpkg
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/src/glob-words.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Common Environment and Glob related terms.
BASH_ARGV0
BASH_COMPAT
BASH_SOURCE
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/src/miscellaneous-words.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Terms that are common to shell scripts but not a command, function, or keyword.
alnum
autoremove
cntrl
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/src/shell-bash-words.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Bash related terms
bashscript
braceexpand
builtin
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/src/shell-sh-words.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# general shell functions and keyword shared across the various shells.
alias
allexport
bg
Expand Down
1 change: 1 addition & 0 deletions dictionaries/shell/src/shell-zsh-words.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# zsh related terms
--no-globalrcs
ARCHFLAGS
autoload
Expand Down
File renamed without changes.

0 comments on commit 165c758

Please sign in to comment.