Skip to content

Commit 15bd662

Browse files
authored
Merge pull request microsoft#97646 from 9at8/add-shell-extensions
Support more shell script file extensions
2 parents a5ee0a3 + 2427815 commit 15bd662

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

extensions/shellscript/package.json

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,45 @@
1313
"languages": [{
1414
"id": "shellscript",
1515
"aliases": ["Shell Script", "shellscript", "bash", "sh", "zsh", "ksh", "csh"],
16-
"extensions": [".sh", ".bash", ".bashrc", ".bash_aliases", ".bash_profile", ".bash_login", ".ebuild", ".install", ".profile", ".bash_logout", ".zsh", ".zshrc", ".zprofile", ".zlogin", ".zlogout", ".zshenv", ".zsh-theme", ".ksh", ".csh", ".cshrc"],
16+
"extensions": [
17+
".sh",
18+
".bash",
19+
".bashrc",
20+
".bash_aliases",
21+
".bash_profile",
22+
".bash_login",
23+
".ebuild",
24+
".install",
25+
".profile",
26+
".bash_logout",
27+
".zsh",
28+
".zshrc",
29+
".zprofile",
30+
".zlogin",
31+
".zlogout",
32+
".zshenv",
33+
".zsh-theme",
34+
".ksh",
35+
".csh",
36+
".cshrc",
37+
".tcshrc",
38+
".yashrc",
39+
".yash_profile"
40+
],
1741
"filenames": [
18-
"APKBUILD",
19-
"PKGBUILD",
20-
".envrc"
21-
],
22-
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh|ksh|ash|qsh|csh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
42+
"APKBUILD",
43+
"PKGBUILD",
44+
".envrc",
45+
".hushlogin",
46+
"zshrc",
47+
"zshenv",
48+
"zlogin",
49+
"zprofile",
50+
"zlogout",
51+
"bashrc_Apple_Terminal",
52+
"zshrc_Apple_Terminal"
53+
],
54+
"firstLine": "^#!.*\\b(bash|zsh|sh|ksh|dtksh|pdksh|mksh|ash|dash|yash|sh|csh|jcsh|tcsh|itcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
2355
"configuration": "./language-configuration.json",
2456
"mimetypes": ["text/x-shellscript"]
2557
}],

0 commit comments

Comments
 (0)