Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Tabby
提交
edb2cf2b
T
Tabby
项目概览
后端镜像
/
Tabby
通知
37
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabby
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
edb2cf2b
编写于
1月 20, 2020
作者:
Cyril Taylor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add icon for wsl distributions(#2020)
上级
d5babde1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
219 addition
and
12 deletion
+219
-12
terminus-terminal/src/icons/alpine.svg
terminus-terminal/src/icons/alpine.svg
+1
-0
terminus-terminal/src/icons/debian.svg
terminus-terminal/src/icons/debian.svg
+1
-0
terminus-terminal/src/icons/linux.svg
terminus-terminal/src/icons/linux.svg
+122
-0
terminus-terminal/src/icons/suse.svg
terminus-terminal/src/icons/suse.svg
+47
-0
terminus-terminal/src/icons/ubuntu.svg
terminus-terminal/src/icons/ubuntu.svg
+7
-0
terminus-terminal/src/shells/wsl.ts
terminus-terminal/src/shells/wsl.ts
+41
-12
未找到文件。
terminus-terminal/src/icons/alpine.svg
0 → 100644
浏览文件 @
edb2cf2b
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
viewBox=
"0 0 65 57"
fill=
"#fff"
fill-rule=
"evenodd"
stroke=
"#000"
stroke-linecap=
"round"
stroke-linejoin=
"round"
width=
"300"
height=
"300"
font-family=
"Roboto"
font-size=
"14px"
text-anchor=
"middle"
><defs><style
type=
"text/css"
></style></defs><use
xlink:href=
"#A"
x=
".5"
y=
".5"
></use><symbol
id=
"A"
overflow=
"visible"
><g
stroke=
"none"
fill=
"#0d597f"
fill-rule=
"nonzero"
><path
d=
"M23.252 34.527v-6.745l-4.855 4.864c.474.333.968.635 1.48.906.463.243.87.434 1.303.58a7.97 7.97 0 0 0 1.13.304c.348.064.66.093.95.096m24.822-.562a1.17 1.17 0 0 0 .142.1c.123.078.252.145.385.203a2.93 2.93 0 0 0 .637.194c.296.06.598.088.9.087a5.84 5.84 0 0 0 .955-.087 7.24 7.24 0 0 0 1.138-.301c.453-.16.895-.354 1.32-.58.52-.274 1.02-.58 1.503-.918l-3.685-3.6-12.2-12.258-5.356 5.356-7.23-7.455L8.44 32.647c.48.337.98.644 1.5.918.47.246.9.434 1.317.58a7.18 7.18 0 0 0 1.135.301 5.53 5.53 0 0 0 .955.087 4.53 4.53 0 0 0 .9-.087 3.29 3.29 0 0 0 .637-.194c.134-.054.263-.12.385-.197l.145-.104 8.193-8.193 2.924-2.808 8.106 8.106 2.837 2.912c.046.037.094.07.145.1.122.078.25.145.385.2a3.49 3.49 0 0 0 .637.194c.255.052.556.087.903.087a5.84 5.84 0 0 0 .955-.087c.387-.068.768-.168 1.138-.3a9.94 9.94 0 0 0 1.32-.579c.52-.274 1.02-.58 1.503-.918l-6.508-6.37 1.2-1.2 5.63 5.63 3.283 3.254M47.996.02l15.998 27.714-15.99 27.694H15.998L0 27.714 15.998 0z"
></path><path
d=
"M38.022 26.367L33.76 22.11l.304-.304 4.3 4.244z"
></path></g></symbol></svg>
\ No newline at end of file
terminus-terminal/src/icons/debian.svg
0 → 100644
浏览文件 @
edb2cf2b
<?xml version="1.0" ?>
<svg
enable-background=
"new 0 0 515.91 728.5"
height=
"512"
id=
"Layer_1"
version=
"1.1"
viewBox=
"0 0 512.00003 512"
width=
"512"
xml:space=
"preserve"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:cc=
"http://creativecommons.org/ns#"
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:inkscape=
"http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:sodipodi=
"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:svg=
"http://www.w3.org/2000/svg"
><defs
id=
"defs7"
/><g
id=
"g7966"
transform=
"translate(-2045.7803,196.99031)"
><path
d=
"m -733.62329,72.267944 c 0,203.804876 -165.21649,369.021366 -369.02141,369.021366 -203.8048,0 -369.0213,-165.21649 -369.0213,-369.021366 0,-203.804874 165.2165,-369.021364 369.0213,-369.021364 203.80492,0 369.02141,165.21649 369.02141,369.021364 z"
id=
"path4894"
style=
"fill:#d70751;fill-opacity:1;fill-rule:nonzero;stroke:none"
transform=
"matrix(0.69372678,0,0,0.69372678,3066.7144,8.875483)"
/><path
d=
"m 2408.1596,34.171381 c 0.3467,9.30934 -2.7166,13.83297 -5.4872,21.83223 l -4.9819,2.47761 c -4.0729,7.91448 0.4042,5.02457 -2.5123,11.31686 -6.3657,5.65264 -19.2891,17.68231 -23.4276,18.78434 -3.0249,-0.0655 2.0461,-3.56809 2.7089,-4.93597 -8.512,5.84146 -6.8319,8.76991 -19.8518,12.32641 l -0.3776,-0.85158 c -32.097,15.104549 -76.6864,-14.82325 -76.1007,-55.65175 -0.3391,2.58937 -0.9749,1.94202 -1.6838,2.98236 -1.657,-21.00376 9.7025,-42.10003968 28.8603,-50.7273397 18.7381,-9.2708003 40.7053,-5.4715403 54.1186,7.04749 -7.3675,-9.6561203 -22.0443,-19.8940603 -39.426,-18.9461803 -17.035,0.27743 -32.9761,11.1010603 -38.2931,22.8571903 -8.7239,5.4908 -9.7411,21.1771597 -13.5405,24.0516597 -5.1207,37.60724 9.6217,53.84846 34.5635,72.96419 3.9146,2.643279 1.1021,3.047869 1.626,5.059239 -8.2845,-3.87632 -15.8677,-9.733189 -22.1096,-16.903989 3.3139,4.84346 6.8853,9.55209 11.5055,13.251159 -7.818,-2.639459 -18.2564,-18.930769 -21.2968,-19.593529 13.4672,24.113309 54.6307,42.288879 76.1971,33.268509 -9.9796,0.36992 -22.653,0.20422 -33.858,-3.93793 -4.7203,-2.42368 -11.1125,-7.43668 -9.9685,-8.37302 29.4233,10.98546 59.8095,8.31522 85.2639,-12.087479 6.4812,-5.04771 13.5554,-13.62877 15.6016,-13.74437 -3.0788,4.63156 0.5278,2.22715 -1.8381,6.31541 6.4427,-10.40752 -2.809,-4.23853 6.6662,-17.97135 l 3.4988,4.81653 c -1.3102,-8.64661 10.7309,-19.13501 9.5056,-32.79846 2.7628,-4.17684 3.0788,4.50055 0.1503,14.11044 4.0652,-10.6618 1.075,-12.37651 2.1155,-21.17721 1.1212,2.95928 2.6125,6.09963 3.3716,9.22456 -2.6511,-10.30729 2.7088,-17.35093 4.0421,-23.34266 -1.3179,-0.57799 -4.0884,4.55446 -4.728,-7.6139297 0.096,-5.28658 1.4758,-2.77046 2.0037,-4.07284 -1.0327,-0.59725 -3.757,-4.65078998 -5.41,-12.4227 1.1906,-1.8302603 3.2059,4.73557 4.8397,5.00144 -1.052,-6.17669 -2.8592,-10.8891303 -2.9362,-15.6324003 -4.7781,-9.9798 -1.6916,1.3332 -5.5603,-4.28478 -5.0863,-15.85207 4.2155,-3.6798 4.8475,-10.87757 7.6989,11.15501 12.0874,28.4558503 14.1103,35.6189803 -1.5413,-8.73523 -4.0267,-17.2006903 -7.0665,-25.3887503 2.3462,0.99029 -3.7724,-17.96746 3.0475,-5.41374 -7.2785,-26.76045 -31.1259,-51.76773 -53.0701,-63.49688 2.6781,2.4545 6.0651,5.53704 4.8553,6.02256 -10.92,-6.49263 -9.0009,-7.00511 -10.5655,-9.74861 -8.8817,-3.618151 -9.475,0.29671 -15.3514,0.008 -16.7614,-8.893181 -19.9904,-7.949121 -35.4147,-13.513151 l 0.7013,3.28292 c -11.1008,-3.69907 -12.9351,1.39485 -24.9299,0.008 -0.7283,-0.56643 3.8452,-2.06531 7.6137,-2.60863 -10.7348,1.41801 -10.234,-2.11926 -20.738,0.38919 2.5856,-1.81487 5.3291,-3.0209 8.0881,-4.56217 -8.7508,0.53171 -20.8998,5.09392 -17.1506,0.94016 -14.276,6.37321 -39.6341,15.316471 -53.8639,28.660111 l -0.4469,-2.99011 c -6.5198,7.82586 -28.433,23.37353 -30.1785,33.51898 l -1.7456,0.4046 c -3.3867,5.74512 -5.5868,12.25316 -8.2764,18.16012 -4.4352,7.56383 -6.5044,2.91304 -5.8724,4.09981 -8.7273,17.69388 -13.0699,32.5595203 -16.8115,44.75876 2.6665,3.98807 0.066,24.01314 1.0712,40.03858 -4.3773,79.160109 55.5554,156.012179 121.0678,173.752299 9.602,3.44094 23.878,3.31763 36.0235,3.65669 -14.3264,-4.09978 -16.1761,-2.16933 -30.14,-7.03594 -10.0682,-4.74712 -12.2724,-10.16086 -19.4085,-16.35296 l 2.8244,4.98987 c -13.987,-4.95135 -8.1339,-6.12655 -19.5165,-9.72929 l 3.0171,-3.93413 c -4.5353,-0.34679 -12.0102,-7.63704 -14.0524,-11.68676 l -4.9631,0.19651 c -5.9572,-7.34419 -9.1358,-12.65004 -8.9007,-16.76142 l -1.603,2.85911 c -1.8149,-3.11727 -21.9286,-27.58124 -11.4943,-21.88621 -1.9382,-1.76476 -4.516,-2.87832 -7.3093,-7.96068 l 2.1232,-2.42367 c -5.0131,-6.46184 -9.2402,-14.74234 -8.9165,-17.50125 2.678,3.6143 4.5352,4.29247 6.3771,4.91285 -12.6811,-31.457509 -13.3939,-1.73009 -22.9921,-32.020089 l 2.0268,-0.16184 c -1.5528,-2.35432 -2.5046,-4.89355 -3.7531,-7.39429 l 0.8863,-8.80455 c -9.1245,-10.54238 -2.5509,-44.87051 -1.2292,-63.69339 0.9055,-7.6524597 7.6179,-15.8019597 12.7154,-28.58301 l -3.1053,-0.53176 c 5.9414,-10.35741 33.9158,-41.61071 46.8779,-40.00778 6.277,-7.88363 -1.2485,-0.0308 -2.4777,-2.01138 13.7905,-14.26838 18.1254,-10.07994 27.4311,-12.65005 10.0297,-5.95315 -8.6121,2.32735 -3.8571,-2.2695 17.3509,-4.42734 12.2916,-10.07228 34.9215,-12.3187 2.389,1.35632 -5.5372,2.09614 -7.5255,3.85706 14.4498,-7.07447 45.7338,-5.45998 66.0634,3.92255 23.57,11.024 50.0683,43.59508 51.1164,74.23959032 l 1.1907,0.31982998 c -0.6012,12.1837897 1.8649,26.2749597 -2.4161,39.2140097 l 2.8939,-6.13045"
id=
"path14-1"
style=
"fill:#ffffff;fill-opacity:1"
/></g></svg>
\ No newline at end of file
terminus-terminal/src/icons/linux.svg
0 → 100644
浏览文件 @
edb2cf2b
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width=
"256px"
height=
"295px"
viewBox=
"0 0 256 295"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
preserveAspectRatio=
"xMidYMid"
>
<defs>
<filter
x=
"-50%"
y=
"-50%"
width=
"200%"
height=
"200%"
filterUnits=
"objectBoundingBox"
id=
"filter-1"
>
<feOffset
dx=
"0"
dy=
"0"
in=
"SourceAlpha"
result=
"shadowOffsetOuter1"
></feOffset>
<feGaussianBlur
stdDeviation=
"6.5"
in=
"shadowOffsetOuter1"
result=
"shadowBlurOuter1"
></feGaussianBlur>
</filter>
<linearGradient
x1=
"48.5477412%"
y1=
"115.276174%"
x2=
"51.0473804%"
y2=
"41.3637237%"
id=
"linearGradient-2"
>
<stop
stop-color=
"#FFEED7"
offset=
"0%"
></stop>
<stop
stop-color=
"#BDBFC2"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"54.4065463%"
y1=
"2.40410545%"
x2=
"46.1753957%"
y2=
"90.5422349%"
id=
"linearGradient-3"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.8"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"51.859653%"
y1=
"88.2477484%"
x2=
"47.9469396%"
y2=
"9.74782136%"
id=
"linearGradient-4"
>
<stop
stop-color=
"#FFEED7"
offset=
"0%"
></stop>
<stop
stop-color=
"#BDBFC2"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.9251097%"
y1=
"85.4900173%"
x2=
"49.9236843%"
y2=
"13.8109272%"
id=
"linearGradient-5"
>
<stop
stop-color=
"#FFEED7"
offset=
"0%"
></stop>
<stop
stop-color=
"#BDBFC2"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"53.9014071%"
y1=
"3.10177585%"
x2=
"45.9555354%"
y2=
"93.8949571%"
id=
"linearGradient-6"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"45.5928761%"
y1=
"5.47459052%"
x2=
"54.811359%"
y2=
"93.5235162%"
id=
"linearGradient-7"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.9844987%"
y1=
"89.8452442%"
x2=
"49.9844987%"
y2=
"40.6316864%"
id=
"linearGradient-8"
>
<stop
stop-color=
"#FFEED7"
offset=
"0%"
></stop>
<stop
stop-color=
"#BDBFC2"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"53.5047131%"
y1=
"99.97524%"
x2=
"42.7455968%"
y2=
"23.5451715%"
id=
"linearGradient-9"
>
<stop
stop-color=
"#FFEED7"
offset=
"0%"
></stop>
<stop
stop-color=
"#BDBFC2"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.8413363%"
y1=
"13.2289558%"
x2=
"50.2412612%"
y2=
"94.6729694%"
id=
"linearGradient-10"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.8"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.9272298%"
y1=
"37.3270337%"
x2=
"50.7270446%"
y2=
"92.7824735%"
id=
"linearGradient-11"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.8755597%"
y1=
"2.29900584%"
x2=
"49.8755597%"
y2=
"81.203617%"
id=
"linearGradient-12"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.8334391%"
y1=
"2.27189065%"
x2=
"49.8240398%"
y2=
"71.7989617%"
id=
"linearGradient-13"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"53.4670683%"
y1=
"48.9213861%"
x2=
"38.9488708%"
y2=
"98.0999776%"
id=
"linearGradient-14"
>
<stop
stop-color=
"#FFA63F"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFF00"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"52.3731508%"
y1=
"143.008909%"
x2=
"47.57909%"
y2=
"-64.6215389%"
id=
"linearGradient-15"
>
<stop
stop-color=
"#FFEED7"
offset=
"0%"
></stop>
<stop
stop-color=
"#BDBFC2"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"30.580815%"
y1=
"34.0241079%"
x2=
"65.8867024%"
y2=
"89.175349%"
id=
"linearGradient-16"
>
<stop
stop-color=
"#FFA63F"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFF00"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"59.5715091%"
y1=
"-17.2155207%"
x2=
"48.3608522%"
y2=
"66.1184465%"
id=
"linearGradient-17"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"47.7689553%"
y1=
"1.56481301%"
x2=
"51.3733028%"
y2=
"104.312856%"
id=
"linearGradient-18"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"43.5495626%"
y1=
"4.5334861%"
x2=
"57.1143288%"
y2=
"92.8267174%"
id=
"linearGradient-19"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"49.7328042%"
y1=
"17.6085216%"
x2=
"50.5582487%"
y2=
"99.3854667%"
id=
"linearGradient-20"
>
<stop
stop-color=
"#FFA63F"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFF00"
offset=
"100%"
></stop>
</linearGradient>
<linearGradient
x1=
"50.1697217%"
y1=
"2.89048531%"
x2=
"49.6802359%"
y2=
"94.1704279%"
id=
"linearGradient-21"
>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0.65"
offset=
"0%"
></stop>
<stop
stop-color=
"#FFFFFF"
stop-opacity=
"0"
offset=
"100%"
></stop>
</linearGradient>
</defs>
<g
fill=
"none"
>
<g
transform=
"translate(10.000000, 0.000000)"
>
<path
d=
"M235.125423,249.358628 C235.125423,266.714271 182.507524,280.855905 117.584567,280.855905 C52.6616093,280.855905 0.0437105058,266.806099 0.0437105058,249.358628 L0.0437105058,249.358628 C0.0437105058,232.002986 52.6616093,217.861352 117.584567,217.861352 C182.507524,217.861352 235.033594,232.002986 235.125423,249.358628 L235.125423,249.358628 L235.125423,249.358628 Z"
fill=
"#000"
fill-opacity=
"0.2"
filter=
"url(#filter-1)"
></path>
<path
d=
"M53.2125821,215.473804 C41.8258117,199.128278 39.6219206,145.867578 66.160442,113.084699 C79.2919595,97.3819748 82.6896249,86.4543483 83.6997416,71.6699125 C84.434372,54.8652433 71.8538272,4.81855066 119.237485,1.05357012 C167.263944,-2.80323922 164.600909,44.5804184 164.325423,69.6496791 C164.141765,90.7703016 179.844489,102.799874 190.680286,119.329056 C210.607135,149.632558 208.954216,201.791313 186.915306,230.074582 C158.999353,265.428667 135.123866,250.093259 119.237485,251.378862 C89.4849556,253.123609 88.4748389,268.918162 53.2125821,215.473804 L53.2125821,215.473804 Z"
fill=
"#000000"
></path>
<path
d=
"M169.10052,122.451235 C177.365111,130.073025 198.76122,164.141508 164.876395,185.445788 C152.938652,192.88392 175.528535,221.167189 186.364333,207.484699 C205.556551,182.874582 193.343321,143.571858 181.772893,129.522053 C174.059275,119.604543 162.121532,115.747734 169.10052,122.451235 L169.10052,122.451235 Z"
fill=
"url(#linearGradient-2)"
></path>
<path
d=
"M166.8048,117.859796 C180.395461,128.879251 205.097407,167.447344 169.008691,192.608434 C157.162777,200.413881 179.477174,225.115827 192.057718,212.535282 C235.676395,168.641119 190.955773,118.227111 175.528535,100.871469 C161.754216,85.719718 149.540987,104.360963 166.8048,117.859796 L166.8048,117.859796 Z"
stroke=
"#000000"
stroke-width=
"0.9773"
fill=
"#000000"
></path>
<path
d=
"M147.245267,25.0208853 C146.786123,37.60143 132.919975,48.5290565 116.298963,49.5391732 C99.6779518,50.54929 86.638263,40.9990954 87.097407,28.4185507 L87.097407,28.4185507 C87.556551,15.8380059 101.422699,4.91037946 118.043711,3.90026272 C134.664722,2.98197479 147.704411,12.4403405 147.245267,25.0208853 L147.245267,25.0208853 L147.245267,25.0208853 Z"
fill=
"url(#linearGradient-3)"
></path>
<path
d=
"M107.483399,54.9570721 C107.942543,63.1298347 104.085734,70.0169942 98.7596638,70.2924806 C93.4335938,70.567967 88.7503253,64.2317802 88.2911813,56.0590176 L88.2911813,56.0590176 C87.8320374,47.8862549 91.6888467,40.9990954 97.0149167,40.723609 C102.340987,40.4481226 107.024255,46.7843094 107.483399,54.9570721 L107.483399,54.9570721 L107.483399,54.9570721 Z"
fill=
"url(#linearGradient-4)"
></path>
<path
d=
"M117.125423,55.5998736 C117.30908,65.0582394 123.461609,72.5882005 130.807913,72.4045429 C138.154216,72.2208853 143.93943,64.4154378 143.755773,54.8652433 L143.755773,54.8652433 C143.572115,45.4068775 137.419586,37.8769164 130.073282,38.060574 C122.726979,38.2442316 116.849936,46.1415079 117.125423,55.5998736 L117.125423,55.5998736 L117.125423,55.5998736 Z"
fill=
"url(#linearGradient-5)"
></path>
<path
d=
"M123.186123,57.7119359 C123.094294,62.9461771 125.6655,67.1703016 129.063166,67.1703016 C132.369002,67.1703016 135.215695,62.9461771 135.307524,57.8037647 L135.307524,57.8037647 C135.399353,52.5695234 132.828146,48.3453989 129.430481,48.3453989 C126.032816,48.3453989 123.277952,52.5695234 123.186123,57.7119359 L123.186123,57.7119359 L123.186123,57.7119359 Z"
fill=
"#000000"
></path>
<path
d=
"M101.973672,57.8037647 C102.432816,62.119718 100.779897,65.7928697 98.3923486,66.1601849 C96.0048,66.4356713 93.7090802,63.2216635 93.2499362,58.9057102 L93.2499362,58.9057102 C92.7907922,54.5897569 94.4437105,50.9166051 96.8312591,50.54929 C99.2188078,50.2738036 101.514528,53.4878114 101.973672,57.8037647 L101.973672,57.8037647 L101.973672,57.8037647 Z"
fill=
"#000000"
></path>
<path
d=
"M124.563555,54.7734145 C124.288068,57.7119359 125.6655,60.0994845 127.593905,60.2831421 C129.52231,60.4667997 131.358886,58.1710798 131.634372,55.3243872 L131.634372,55.3243872 C131.909858,52.3858658 130.532426,49.9983172 128.604022,49.8146596 C126.675617,49.631002 124.839041,51.9267219 124.563555,54.7734145 L124.563555,54.7734145 L124.563555,54.7734145 Z"
fill=
"url(#linearGradient-6)"
></path>
<path
d=
"M99.9534381,55.5080448 C100.228925,57.8955935 99.2188078,60.0076557 97.7495471,60.1913133 C96.2802864,60.3749709 94.9028545,58.538395 94.6273681,56.0590176 L94.6273681,56.0590176 C94.3518817,53.6714689 95.3619984,51.5594067 96.8312591,51.3757491 C98.3005198,51.1920915 99.6779518,53.1204962 99.9534381,55.5080448 L99.9534381,55.5080448 L99.9534381,55.5080448 Z"
fill=
"url(#linearGradient-7)"
></path>
<path
d=
"M71.0273681,145.68392 C77.5472125,130.899485 91.4133603,104.911936 91.6888467,84.80143 C91.6888467,68.8232199 139.531648,64.9664106 143.388458,80.9446207 C147.245267,96.9228308 156.979119,120.798317 163.223477,132.368745 C169.467835,143.847344 187.558107,180.487033 168.274061,212.443453 C150.918419,240.726722 98.3005198,263.132948 70.2009089,208.586644 C60.6507144,189.669913 62.3954615,166.25357 71.0273681,145.68392 L71.0273681,145.68392 Z"
fill=
"url(#linearGradient-8)"
></path>
<path
d=
"M65.1503253,134.664465 C59.5487689,145.224776 47.9783409,172.957072 76.2616093,188.108823 C106.65694,204.270691 106.565111,237.420885 70.0172514,221.626333 C36.5915704,207.39287 51.3760062,149.724387 60.7425432,135.950068 C66.8032436,126.308045 75.986123,114.46213 65.1503253,134.664465 L65.1503253,134.664465 Z"
fill=
"url(#linearGradient-9)"
></path>
<path
d=
"M69.9254226,122.726722 C61.0180296,137.235671 39.7137494,171.395983 68.2725043,189.210769 C106.65694,212.810769 95.8211424,236.31894 60.7425432,215.106488 C11.3386521,185.537617 54.7736716,125.848901 74.5168623,103.07536 C97.1067455,77.5469553 78.8328156,107.758628 69.9254226,122.726722 L69.9254226,122.726722 Z"
stroke=
"#000000"
stroke-width=
"1.25"
fill=
"#000000"
></path>
<path
d=
"M156.428146,151.285477 C156.428146,167.447344 140.90908,188.384309 114.27873,188.200652 C86.8219206,188.384309 75.1596638,167.447344 75.1596638,151.285477 C75.1596638,135.123609 93.341765,121.992092 115.747991,121.992092 C138.246045,122.08392 156.428146,135.123609 156.428146,151.285477 L156.428146,151.285477 Z"
fill=
"url(#linearGradient-10)"
></path>
<path
d=
"M141.919197,100.504154 C141.643711,117.216994 130.716084,121.165632 116.941765,121.165632 C103.167446,121.165632 93.1581074,118.686255 91.9643331,100.504154 C91.9643331,89.1173833 103.167446,82.5057102 116.941765,82.5057102 C130.716084,82.4138814 141.919197,89.0255546 141.919197,100.504154 L141.919197,100.504154 Z"
fill=
"url(#linearGradient-11)"
></path>
<path
d=
"M58.6304809,126.216216 C67.6297027,112.533726 86.638263,91.504932 62.2118039,129.154737 C42.3767844,160.19287 54.8655004,180.119718 61.293516,185.629446 C79.8429323,202.158628 79.1083019,213.269913 64.5075237,204.546177 C33.1939051,185.904932 39.7137494,154.499485 58.6304809,126.216216 L58.6304809,126.216216 Z"
fill=
"url(#linearGradient-12)"
></path>
<path
d=
"M188.935539,131.817772 C181.130092,115.747734 156.336318,74.9757491 190.129314,122.359407 C220.89196,165.243453 199.312193,195.087811 195.455384,198.026333 C191.598574,200.964854 178.650714,206.933726 182.415695,196.557072 C186.272504,186.180418 205.372893,166.529056 188.935539,131.817772 L188.935539,131.817772 Z"
fill=
"url(#linearGradient-13)"
></path>
<path
d=
"M51.8351502,258.541508 C31.2655004,247.613881 1.42114241,260.65357 12.2569401,231.084699 C14.4608311,224.381197 9.0429323,214.280029 12.5324265,207.760185 C16.6647222,199.77108 25.5721152,201.515827 30.8981852,196.189757 C36.1324265,190.680029 39.438263,181.129835 49.263944,182.599095 C58.9977961,184.068356 65.5176405,196.006099 72.3129712,210.698706 C77.3635549,221.167189 95.1783409,235.951625 93.9845665,247.70571 C92.5153058,265.704154 72.0374848,269.101819 51.8351502,258.541508 L51.8351502,258.541508 Z"
stroke=
"#E68C3F"
stroke-width=
"6.25"
fill=
"url(#linearGradient-14)"
></path>
<path
d=
"M201.607913,189.11894 C198.485734,194.995983 185.446045,204.454348 176.72231,201.974971 C167.906746,199.587422 163.866279,186.180418 165.611026,175.987422 C167.263944,164.600652 176.72231,163.95785 188.660053,169.651235 C201.516084,175.987422 205.372893,181.313492 201.607913,189.11894 L201.607913,189.11894 Z"
fill=
"url(#linearGradient-15)"
></path>
<path
d=
"M194.445267,253.490924 C209.505189,235.216994 243.022699,238.981975 220.432816,213.912714 C215.657718,208.494815 217.126979,196.924387 211.249936,191.965632 C204.362777,185.904932 196.740987,190.863687 189.761998,187.741508 C182.78301,184.343842 175.436707,177.823998 166.896629,182.415438 C158.356551,187.098706 157.438263,199.220107 156.611804,215.198317 C155.877174,226.676916 145.408691,245.869134 151.010247,256.429446 C159.091181,272.774971 180.119975,270.57108 194.445267,253.490924 L194.445267,253.490924 Z"
stroke=
"#E68C3F"
stroke-width=
"6.2507"
fill=
"url(#linearGradient-16)"
></path>
<path
d=
"M187.925423,229.064465 C211.249936,194.628667 193.894294,194.904154 188.017251,192.241119 C182.140209,189.486255 175.987679,184.068356 169.10052,187.833337 C162.21336,191.690146 161.846045,201.607656 161.662388,214.647344 C161.386901,224.013881 153.581454,239.716605 158.264722,248.440341 C163.958107,258.633337 177.732426,243.848901 187.925423,229.064465 L187.925423,229.064465 Z"
fill=
"url(#linearGradient-17)"
></path>
<path
d=
"M47.0600529,234.02322 C12.1651113,211.433337 28.5106366,203.719718 33.7448778,200.138395 C40.0810646,195.546955 40.1728934,186.731391 47.9783409,187.55785 C55.7837883,188.384309 60.375228,198.026333 65.6094693,209.964076 C69.4662786,218.504154 82.8732825,229.890924 81.8631658,239.716605 C80.5775626,251.287033 62.1199751,243.665243 47.0600529,234.02322 L47.0600529,234.02322 Z"
fill=
"url(#linearGradient-18)"
></path>
<path
d=
"M199.587679,188.843453 C196.832816,193.618551 185.629703,201.148512 178.19157,199.128278 C170.569781,197.199874 167.080286,186.455905 168.641376,178.374971 C170.018808,169.192092 178.19157,168.732948 188.476395,173.324387 C199.404022,178.283142 202.801687,182.507267 199.587679,188.843453 L199.587679,188.843453 Z"
fill=
"#000000"
></path>
<path
d=
"M192.057718,186.180418 C190.312971,189.486255 182.966668,194.720496 177.824255,193.343064 C172.681843,191.965632 170.110637,184.5275 170.937096,178.925944 C171.671726,172.589757 177.181454,172.222442 184.160442,175.344621 C191.690403,178.834115 194.077952,181.772636 192.057718,186.180418 L192.057718,186.180418 Z"
fill=
"url(#linearGradient-19)"
></path>
<path
d=
"M97.1067455,66.3438425 C100.779897,62.9461771 109.68729,52.5695234 126.583788,63.4053211 C129.705967,65.4255546 132.277174,65.6092121 138.246045,68.1804184 C150.275617,73.1391732 144.582232,85.0769164 131.726201,89.1173833 C126.216473,90.8621304 121.257718,97.5656324 111.340209,96.9228308 C102.800131,96.4636868 100.59624,90.8621304 95.3619984,87.8317802 C86.0872903,82.597539 84.7098584,75.5267219 89.760442,71.7617413 C94.8110257,67.9967608 96.7394304,66.6193289 97.1067455,66.3438425 L97.1067455,66.3438425 Z"
stroke=
"#E68C3F"
stroke-width=
"3.75"
fill=
"url(#linearGradient-20)"
></path>
<path
d=
"M138.429703,75.9858658 C133.379119,76.2613522 122.451493,87.1889787 110.972893,87.1889787 C99.4942942,87.1889787 92.6071346,76.5368386 90.8623875,76.5368386"
stroke=
"#E68C3F"
stroke-width=
"2.5"
></path>
<path
d=
"M102.800131,65.4255546 C104.636707,63.7726363 110.421921,59.2730254 118.043711,63.8644651 C119.696629,64.782753 121.349547,65.7928697 123.737096,67.1703016 C128.604022,70.0169942 126.216473,74.14929 120.33943,76.7204962 C117.676395,77.8224417 113.268613,80.2099904 109.962777,80.0263328 C106.289625,79.6590176 103.810247,77.2714689 101.422699,75.7103795 C96.9230879,72.7718581 97.1985743,70.2924806 99.3106366,68.364076 C100.871726,66.8948153 102.616473,65.5173833 102.800131,65.4255546 L102.800131,65.4255546 Z"
fill=
"url(#linearGradient-21)"
></path>
</g>
</g>
</svg>
\ No newline at end of file
terminus-terminal/src/icons/suse.svg
0 → 100644
浏览文件 @
edb2cf2b
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:cc=
"http://creativecommons.org/ns#"
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
id=
"svg8"
version=
"1.1"
viewBox=
"0 0 256 256.00001"
height=
"256"
width=
"256"
>
<defs
id=
"defs2"
/>
<metadata
id=
"metadata5"
>
<rdf:RDF>
<cc:Work
rdf:about=
""
>
<dc:format>
image/svg+xml
</dc:format>
<dc:type
rdf:resource=
"http://purl.org/dc/dcmitype/StillImage"
/>
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform=
"matrix(6.9999999,0,0,6.9999736,16,-7617.6082)"
id=
"layer1"
style=
"fill:#73ba25;fill-opacity:1"
>
<g
style=
"fill:#73ba25;fill-opacity:1"
transform=
"matrix(0.26458333,0,0,0.26458333,-10.590624,-38.473045)"
id=
"g838"
>
<circle
r=
"0"
cy=
"3582.8301"
cx=
"507.46362"
id=
"path872"
style=
"opacity:0.3;fill:#73ba25;fill-opacity:1;stroke:none;stroke-width:1.90573967;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
/>
<path
id=
"path819"
d=
"m 100.5002,4267.059 a 60.472077,60.472442 0 0 0 -47.607132,23.2988 c 7.375955,1.9706 12.596534,3.6642 14.160064,4.1895 0.0245,-0.9593 0.183589,-9.5391 0.183589,-9.5391 0,0 0.0202,-0.1964 0.124999,-0.2988 0.13497,-0.1318 0.330078,-0.092 0.330078,-0.092 1.939989,0.281 43.348482,6.4189 60.802382,16.5899 2.15548,1.261 3.21941,2.6017 4.5488,3.9609 4.82477,4.99 11.19998,25.7389 11.88469,30.0176 0.0269,0.1681 -0.18083,0.3507 -0.26953,0.4199 h -0.002 c -0.4957,0.3868 -1.03554,0.789 -1.57616,1.1484 -4.12998,2.7709 -13.64449,9.4312 -25.85142,8.3438 -10.96493,-0.97 -25.290388,-7.2597 -42.560284,-18.6387 1.69799,3.9756 3.371,7.9635 5.04489,11.9492 2.500985,1.299 26.640524,13.5997 38.554464,13.3594 9.59593,-0.1999 19.85892,-4.8804 23.96469,-7.3516 0,0 0.90227,-0.5436 1.29491,-0.2402 0.4295,0.3318 0.31068,0.8402 0.20898,1.3594 -0.25259,1.1786 -0.82764,3.3289 -1.21873,4.3496 l -0.33008,0.832 c -0.46999,1.2592 -0.92111,2.4296 -1.79101,3.1504 -2.41868,2.1993 -6.27908,3.9491 -12.32804,6.5781 -9.34995,4.09 -24.51938,6.6911 -38.603293,6.6016 -5.04437,-0.1123 -9.91781,-0.672 -14.197174,-1.1719 -8.782187,-0.9915 -15.927854,-1.7959 -20.285038,1.3555 a 60.472077,60.472442 0 0 0 45.517305,20.7734 60.472077,60.472442 0 0 0 60.47229,-60.4726 60.472077,60.472442 0 0 0 -60.47229,-60.4727 z m 13.4882,35.0879 c -4.73327,-0.1509 -9.24668,1.5194 -12.70695,4.75 -3.458684,3.2199 -5.437952,7.6097 -5.613251,12.3399 -0.326998,9.7581 7.334241,17.9803 17.083881,18.3398 4.75477,0.1596 9.25839,-1.5118 12.71867,-4.7617 3.44988,-3.2099 5.42915,-7.5999 5.61325,-12.3301 0.335,-9.7494 -7.33546,-17.9889 -17.0956,-18.3379 z m -0.14844,5.2188 c 6.82096,0.242 12.16127,5.972 11.93157,12.791 -0.1053,3.2885 -1.49253,6.3369 -3.90231,8.5976 -2.41329,2.2502 -5.56743,3.4203 -8.87691,3.3203 -6.80516,-0.251 -12.14564,-5.9877 -11.91594,-12.8085 0.1,-3.3008 1.51475,-6.3495 3.91403,-8.5997 2.39919,-2.2502 5.53828,-3.42 8.84956,-3.3007 z m 2.02147,6.2011 c -3.03067,0 -5.47848,1.631 -5.47848,3.6602 0,2.01 2.44781,3.6504 5.47848,3.6504 3.02888,0 5.4863,-1.6405 5.4863,-3.6504 0,-2.0292 -2.45572,-3.6602 -5.4863,-3.6602 z"
style=
"opacity:1;fill:#73ba25;fill-opacity:1;stroke:none;stroke-width:1.90559804;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
/>
</g>
</g>
</svg>
terminus-terminal/src/icons/ubuntu.svg
0 → 100644
浏览文件 @
edb2cf2b
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width=
"256px"
height=
"256px"
viewBox=
"0 0 256 256"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
preserveAspectRatio=
"xMidYMid"
>
<g>
<path
d=
"M255.637396,127.683191 C255.637396,198.196551 198.47207,255.363378 127.954205,255.363378 C57.4348387,255.363378 0.27026393,198.196551 0.27026393,127.683191 C0.27026393,57.1653255 57.4355894,0 127.954205,0 C198.472821,0 255.637396,57.1653255 255.637396,127.683191 L255.637396,127.683191 Z"
fill=
"#DD4814"
></path>
<path
d=
"M41.1334194,110.63254 C31.7139707,110.63254 24.0827683,118.264493 24.0827683,127.683191 C24.0827683,137.097384 31.7139707,144.728587 41.1334194,144.728587 C50.5476129,144.728587 58.1788152,137.097384 58.1788152,127.683191 C58.1788152,118.264493 50.5476129,110.63254 41.1334194,110.63254 L41.1334194,110.63254 Z M162.848282,188.111202 C154.694569,192.820551 151.898839,203.240727 156.608938,211.389935 C161.313032,219.543648 171.733208,222.338628 179.886921,217.629279 C188.039883,212.925185 190.835613,202.505009 186.126264,194.350545 C181.42217,186.202088 170.995988,183.407109 162.848282,188.111202 L162.848282,188.111202 Z M78.1618299,127.683191 C78.1618299,110.836739 86.5295015,95.9534545 99.3332551,86.9409032 L86.8703343,66.0667683 C71.9555191,76.0365044 60.8581818,91.271132 56.2464282,109.113806 C61.6276833,113.504845 65.0720469,120.189372 65.0720469,127.68244 C65.0720469,135.171003 61.6276833,141.855531 56.2464282,146.246569 C60.852176,164.094499 71.9495132,179.329877 86.8703343,189.299613 L99.3332551,168.420223 C86.5295015,159.412927 78.1618299,144.530393 78.1618299,127.683191 L78.1618299,127.683191 Z M127.954205,77.8855601 C153.967109,77.8855601 175.30895,97.8302874 177.549138,123.265877 L201.839859,122.907777 C200.644692,104.129689 192.441431,87.2719765 179.836622,74.875871 C173.354792,77.3247625 165.86773,76.9501466 159.396411,73.2197537 C152.91383,69.4788504 148.849361,63.1681877 147.738276,56.3177478 C141.438123,54.5790499 134.807648,53.6271202 127.952704,53.6271202 C116.168446,53.6271202 105.026815,56.3950733 95.1344047,61.2913548 L106.979472,82.5175836 C113.351695,79.5521877 120.460387,77.8855601 127.954205,77.8855601 L127.954205,77.8855601 Z M127.954205,177.475566 C120.460387,177.475566 113.351695,175.808188 106.980223,172.843543 L95.1351554,194.069021 C105.027566,198.971308 116.169196,201.740012 127.954205,201.740012 C134.80915,201.740012 141.439625,200.787331 147.739026,199.043378 C148.850111,192.192938 152.916082,185.888282 159.397161,182.140622 C165.872985,178.404223 173.355543,178.036364 179.837372,180.485255 C192.442182,168.08915 200.645443,151.231437 201.84061,132.453349 L177.543883,132.095249 C175.30895,157.537595 153.967859,177.475566 127.954205,177.475566 L127.954205,177.475566 Z M162.842276,67.2446686 C170.995988,71.9532669 181.416915,69.1642933 186.121009,61.0105806 C190.830358,52.856868 188.041384,42.4359413 179.886921,37.7258416 C171.733208,33.0217478 161.313032,35.8167273 156.602182,43.9704399 C151.898839,52.1196481 154.693818,62.5405748 162.842276,67.2446686 L162.842276,67.2446686 Z"
fill=
"#FFFFFF"
></path>
</g>
</svg>
\ No newline at end of file
terminus-terminal/src/shells/wsl.ts
浏览文件 @
edb2cf2b
...
...
@@ -14,6 +14,19 @@ try {
var
wnr
=
require
(
'
windows-native-registry
'
)
// eslint-disable-line @typescript-eslint/no-var-requires
}
catch
{
}
// WSL Distribution List
// https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-your-linux-distribution-of-choice
var
wslIconMap
:
{
[
key
:
string
]:
string
}
=
{
'
Alpine
'
:
'
alpine.svg
'
,
'
Debian
'
:
'
debian.svg
'
,
'
kali-linux
'
:
'
linux.svg
'
,
'
SLES-12
'
:
'
suse.svg
'
,
'
openSUSE-Leap-15-1
'
:
'
suse.svg
'
,
'
Ubuntu-18.04
'
:
'
ubuntu.svg
'
,
'
Ubuntu
'
:
'
ubuntu.svg
'
,
'
Linux
'
:
'
linux.svg
'
,
}
/** @hidden */
@
Injectable
()
export
class
WSLShellProvider
extends
ShellProvider
{
...
...
@@ -31,23 +44,35 @@ export class WSLShellProvider extends ShellProvider {
const
bashPath
=
`
${
process
.
env
.
windir
}
\\system32\\bash.exe`
const
wslPath
=
`
${
process
.
env
.
windir
}
\\system32\\wsl.exe`
const
shells
:
Shell
[]
=
[{
id
:
'
wsl
'
,
name
:
'
WSL / Default distro
'
,
command
:
wslPath
,
env
:
{
TERM
:
'
xterm-color
'
,
COLORTERM
:
'
truecolor
'
,
},
}]
const
lxssPath
=
'
Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Lxss
'
const
lxss
=
wnr
.
getRegistryKey
(
wnr
.
HK
.
CU
,
lxssPath
)
const
shells
:
Shell
[]
=
[]
if
(
null
!=
lxss
&&
null
!=
lxss
.
DefaultDistribution
)
{
const
defaultDistKey
=
wnr
.
getRegistryKey
(
wnr
.
HK
.
CU
,
lxssPath
+
'
\\
'
+
String
(
lxss
.
DefaultDistribution
.
value
))
if
(
defaultDistKey
.
DistributionName
)
{
const
shell
:
Shell
=
{
id
:
'
wsl
'
,
name
:
'
WSL / Default distro
'
,
command
:
wslPath
,
env
:
{
TERM
:
'
xterm-color
'
,
COLORTERM
:
'
truecolor
'
,
},
}
if
(
wslIconMap
.
hasOwnProperty
(
defaultDistKey
.
DistributionName
.
value
))
{
shell
[
'
icon
'
]
=
require
(
`../icons/
${
wslIconMap
[
defaultDistKey
.
DistributionName
.
value
]}
`
)
}
shells
.
push
(
shell
)
}
}
if
(
!
lxss
||
!
lxss
.
DefaultDistribution
||
!
isWindowsBuild
(
WIN_BUILD_WSL_EXE_DISTRO_FLAG
))
{
if
(
await
fs
.
exists
(
bashPath
))
{
return
[{
id
:
'
wsl
'
,
name
:
'
WSL / Bash on Windows
'
,
icon
:
require
(
`../icons/
${
wslIconMap
[
'
linux
'
]}
`
),
command
:
bashPath
,
env
:
{
TERM
:
'
xterm-color
'
,
...
...
@@ -64,7 +89,7 @@ export class WSLShellProvider extends ShellProvider {
continue
}
const
name
=
childKey
.
DistributionName
.
value
shells
.
push
(
{
const
shell
:
Shell
=
{
id
:
`wsl-
${
slug
(
name
)}
`
,
name
:
`WSL /
${
name
}
`
,
command
:
wslPath
,
...
...
@@ -74,7 +99,11 @@ export class WSLShellProvider extends ShellProvider {
TERM
:
'
xterm-color
'
,
COLORTERM
:
'
truecolor
'
,
},
})
}
if
(
wslIconMap
.
hasOwnProperty
(
name
))
{
shell
[
'
icon
'
]
=
require
(
`../icons/
${
wslIconMap
[
name
]}
`
)
}
shells
.
push
(
shell
)
}
return
shells
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录