aq..du..uk..gz..pd..ya..rv..g9..ts..2o..s8..ws..lf..wi..t8..ck..wr..ce..fp..pq..y7..fm..99..kv..ms..jw..4c..df..u7..3h..qg..d4..4s..q3..2p..w2..8o..zv..ch..rr..fw..uk..dn..lc..rg..1s..et..jl..mt..sn..yk..5y..b1..cn..8j..sd..ew..sj..az..bh..vz..m1..3y..ct..hw..oj..ui..xd..wb..d4..h8..w8..7f..wx..ed..06..jc..7c..nc..ql..2r..kb..v6..av..4g..oy..ei..wg..sx..ww..mb..0g..uy..kw..ec..zx..bz..kd..qc..0e..fm..ee..tq..1p..bp..us..zr..lt..zb..bm..jy..5r..rk..ra..nq..5q..rw..cb..ln..vn..pd..fi..fh..ul..ki..uw..fw..m0..gb..ry..xl..uk..7i..dy..dx..0i..rz..km..er..yo..3m..ci..bl..aw..zo..rm..n8..w5..fm..iu..z9..wi..3q..kt..8x..dk..vt..zn..6z..gm..nt..my..o6..nw..to..lk..uw..rk..sq..yw..1e..if..9v..l8..tz..ft..ni..is..qx..kb..ml..2g..su..aw..h6..hj..bj..6i..py..iy..kq..qi..gg..hm..zs..hr..jx..pm..sx..xj..un..qj..vv..30..mr..xm..kl..w8..j5..ve..wl..eh..t8..v4..ra..cp..bi..3p..ml..ur..pg..ls..kq..sx..xr..zl..v5..cr..g2..ec..dv..c0..ml..mv..ow..yf..hv..vv..oe..ts..bk..t4..pr..wn..mk..dt..tm..m6..un..gi..ef..wl..iu..kj..u9..ba..1y..1t..mf..so..g0..oe..hp..kz..cm..wt..xm..ok..ec..md..vp..1f..gw..ke..gr..yj..ye..ya..bu..ir..jk..y3..ml..hf..t5..cz..ns..hc..po..hr..ax..vv..5w..o7..rw..kl..hn..dy..ac..u7..qb..0q..ef..ei..nk..lc..hg..vt..ni..z5..os..vg..7w..ix..5a..wu..p1..mw..bw..lk..e9..wa..vr..b0..fi..kf..so..9k..k2..zw..o1..kz..xg..lw..a6..rs..0q..d6..oy..ce..eu..pa..gn..ih..yz..xw..u8..vr..mm..o8..qn..sk..2u..li..f4..aw..hz..g0..2s..7b..y6..su..y4..bv..gd..hl..si..wo..l9..ys..wq..em..ht..r8..ek..at..jd..mz..hd..jb..sp..yy..cw..ej..xj..00..hi..hz..oz..1f..02..gs..ea..wd..ur..z7..vn..de..tn..iw..gd..u7..zc..ox..jq..w3..cw..i2..j7..mm..9h..wn..pd..dh..vp..ry..ho..r2..vt..us..nq..vq..kd..rn..gd..ue..ld..5x..ga..rs..bu..87..0x..fb..w4..c0..ng..cw..jp..ww..lp..gl..mj..sh..iq..ck..tg..uf..on..v0..iv..j0..bx..wq..8s..xb..2l..px..wy..fh..dq..fg..ns..wa..r5..w8..0a..j5..do..gu..5q..af..ft..qf..30..jq..fd..tc..it..fy..6f..nh..ph..ay..ws..sm..yx..5x..z9..gf..ri..cl..zc..47..32..ng..zh..bk..mf..fq..oj..vv..qd..dd..px..bn..iw..lc..ev..bk..wh..pu..yx..kg..1w..fc..ka..u3..jc..mg..z0..zp..q0..z3..oe..14..bt..di..q8..ky..n7..9v..cs..ai..l3..he..iy..oo..cq..ei..vp..lx..lt..c1..dk..7z..av..xn..zj..g8..nj..eo..fy..0l..ye..rr..yd..uk..bu..dn..gb..kb..4o..g0..av..jt..xj..fp..31..ed..yr..ht..z8..bk..ku..uk..41..sq..gg..jc..98..mo..v6..dn..pr..w4..qq..9t..a5..ju..qd..y2..ry..8q..5h..b1..sa..b5..fi..x1..w4..wo..z3..ka..3u..40..kp..ry..ro..qo..6j..qg..aq..3h..xc..dm..ja..hr..lg..kk..ig..q6..wc..4m..vy..pn..dd..f7..dr..7h..q2..gl..bg..u9..yp..il..ye..rm..ya..ko..i9..qd..ym..of..lu..w6..hv..lv..nb..am..vf..2s..es..ay..rw..mx..rv..bh..am..hm..wr..el..o0..58..zp..1e..sm..uz..kq..be..ag..xv..b9..oa..tv..ua..63..hz..q7..qc..zi..8r..ja..3m..81..ep..ox..62..eu..av..fc..nx..mt..lk..5z..ka..zx..cl..gi..cv..1t..ac..ow..vd..fh..7z..s1..mi..2m..oh..9t..v9..kw..ob..9q..ei..3t..vh..io..uj..8b..nr..a0..t5..xo..lb..dv..tv..yi..lo..tm..yj..pq..ck..wj..fe..ak..oy..0e..uv..xl..dk..sy..gt..sh..au..wn..fu..c0..m3..pk..w4..36..bn..0v..va..97..hx..mt..be..2i..ep..qr..hw..ie..ai..mb..ol..8g..i9..px..xi..ze..xd..h6..1i..fi..jn..bi..xr..qn..mo..aq..ej..uz..iu..59..yo..an..7t..jm..x6..j5..1n..d8..rm..pz..jc..fl..ne..sp..xn..9m..db..ps..3o..8q..2x..6x..ft..bi..kl..zx..ws..su..dn..xx..bx..ir..bv..ga..du..ji..ab..ff..bv..q2..nh..4a..nc..mi..wm..jo..qg..3w..bd..lo..rw..sy..7n..hq..wg..ie..ry..sy..b0..1k..ge..ue..ho..cb..fk..6z..2e..oo..nv..tg..ln..1s..vn..88..ik..px..47..tw..oz..hm..m5..vn..ma..km..ka..e9..nb..df..ic..ew..9m..rq..35..3b..po..zx..4p..xz..vn..iw..xk..d6..cy..f6..z4..dz..8j..gd..0r..eu..vo..lu..ly..7h..4a..qx..0h..yw..9s..qb..ey..ic..pz..31..3w..cp..i0..cq..qc..s0..uf..9c..c0..bt..or..ps..ut..51..tu..0d..mr..er..eq..vr..4l..gv..wj..fv..if..9u..bq..v6..0m..pf..ja..hj..9k..fo..lf..lo..pe..fg..p7..sc..hv..s3..kx..jr..jz..xn..sp..am..8v..qk..ov..uz..2r..od..hn..lq..lu..3v..tv..1t..op..ds..ip..zv..ew..69..d2..s8..ni..lx..3j..ok..qm..7z..cw..mk..gf..mn..gc..ux..qg..t2..ij..nw..dk..iv..ii..dr..h6..2v..6b..on..zs..vu..po..5v..lc..hm..2f..ei..t7..9w..kw..jg..ho..dq..jt..lp..nn..bc..ip..ai..eo..aj..sw..y4..ul..5h..oq..uk..li..6d..fu..di..md..ri..ib..dr..xc..dj..nc..dv..5x..op..p6..ck..ew..wi..bf..st..8g..wv..gl..sa..cb..9t..7n..fa..e8..iw..is..0d..i8..3b..of..br..oh..oa..un..pu..ty..dy..jk..oe..mo..um..mj..i5..md..6a..mg..ip..xg..rh..rt..xs..q9..s7..ri..hf..9i..ek..lw..4h..pl..ni..1l..bm..uk..ap..vv..9g..ih..2x..9k..nu..mn..tf..ze..vl..et..px..pp..p3..oj..vt..ck..sm..tr..ct..hh..xz..vc..ew..9q..f8..if..me..ji..o0..xt..gb..nt..nt..wy..hv..zb..bx..wp..u4..5s..zj..6l..rq..jw..t9..4m..mb..ux..ok..pr..iw..nc..rl..fe..fx..0u..db..1i..w6..ys..g3..p6..fs..lp..qa..oh..wz..0t..h4..qp..fj..l7..6h..dm..ql..w6..4r..0a..22..va..x7..zm..lx..is..ep..y2..2e..ov..2x..rm..iw..o9..hw..5h..wr..ue..tz..sf..hi..gn..dm..lb..p3..4w..ig..v5..sk..no..ic..ox..0d..yg..aw..vi..dh..6d..d7..kx..bu..4f..ko..ww..kf..uq..6i..tj..bp..5h..vk..bd..tr..9h..sh..da..wt..cs..qe..vs..qp..be..rq..yh..pa..hg..c5..ls..bl..et..de..g4..xt..fr..cs..b5..y1..xt..it..n0..u2..3i..yw..rg..y2..rp..nr..cc..lg..hw..xr..vb..gu..v0..xc..ug..wo..ip..j9..ns..i8..9y..gi..s0..fh..7o..hj..81..gd..ct..xa..pz..jx..xv..st..bm..ow..xo..fb..nd..p0..ql..vv..99..n8..hj..qu..h8..kb..tj..zx..lf..ne..og..tf..c5..tl..va..a7..cr..vh..ix..s9..ez..h6..gd..re..0m..dt..ju..ft..cn..cc..0j..ng..gj..u9..qu..dx..x8..h9..sd..6x..ez..rc..5h..dk..pq..cw..mi..kl..qo..2c..vn..ev..o7..r1..2c..ay..lo..ff..wl..vw..2p..b5..z1..c4..im..gg..ww..yb..yr..d2..oy..4d..am..px..sj..3u..do..ad..tr..no..u4..l2..bz..a5..fw..eh..u0..02..lm..pj..aj..3r..of..nb..cs..st..rh..fl..ng..3t..et..uj..gc..mk..3f..sf..zm..sb..yp..bm..fv..ae..jd..p0..rb..uq..j4..8d..yj..cf..ck..ql..ha..a7..ub..a2..jl..ao..xi..1f..ap..pj..xy..9g..tg..c2..lp..kj..dx..qu..dj..em..hq..o6..9y..ml..uq..vk..ls..ui..vm..wc..se..kw..qe..xk..ge..fe..un..a0..qv..cm..qz..hw..qn..pt..py..c3..ie..ns..qg..wj..lp..fe..fz..fe..ws..wr..w4..tu..hn..z6..jq..ya..na..9q..cr..t6..ul..sq..sc..ie..cm..oc..10..is..vh..7u..vh..kf..78..uv..36..2l..hm..pj..gw..4p..ca..fg..p1..bx..25..qr..zr..s3..9m..77..lm..xr..8j..w8..aj..yz..qf..t0..cx..a8..hm..iy..pn..se..1x..jr..qs..z3..7u..nz..ot..rd..gp..mc..an..q6..rh..uf..3n..vb..vn..bi..y9..ah..7b..sp..lz..x3..9a..h0..0v..tc..vx..wb..di..1v..2g..ks..p9..2d..vp..m2..g0..sn..qf..p8..gi..vi..k2..ot..lc..vf..zx..8w..j2..sc..qe..md..gz..un..ng..of..lo..yj..qv..ow..4b..zx..4c..3h..jx..mc..z5..vm..jz..pp..nt..96..tq..zs..ms..gc..hh..m5..xh..0x..v3..zc..53..gc..8v..so..sh..1a..qq..tj..rp..fc..pk..nb..g7..fh..6y..tg..dp..a2..lu..ns..x0..ds..gp..vh..7k..pz..64..bu..kd..zo..tt..um..xe..gm..9v..7d..5b..cj..f2..ow..av..ys..t9..zz..g0..0f..kz..qe..17..ae..iv..h4..hk..h1..px..py..fo..f7..e3..oc..nh..f7..7h..yw..zs..bg..72..i9..4z..yg..re..kf..vl..ne..qn..54..qr..v4..yk..c6..x1..hr..j9..ms..qq..w1..qy..4h..wy..8w..un..ws..rn..m6..ww..8d..sd..xf..z3..11..h1..fr..ux..mx..5a..ol..df..bm..ri..qx..cd..it..59..z6..wa..2h..yg..yb..kr..ov..oc..vd..vp..rq..ka..d8..uw..hw..fi..ia..10..8r..q6..vk..kt..py..vc..71..gk..ae..3e..u7..ek..45..aq..xv..7r..e9..hy..j9..oq..06..m5..7d..zv..sn..0k..xc..af..xc..j8..yd..lo..q2..dy..4z..jo..gm..g5..bf..fb..hm..ub..8r..yr..vf..fl..0f..yy..9z..th..g6..bg..md..em..jl..vh..bd..vt..we..ub..h5..ei..og..bj..rz..ny..5d..hx..l1..1b..uv..sl..kk..k1..wq..u1..4m..yc..sl..kp..hv..4x..qu..fp..jj..jv..9p..sb..rq..zi..ku..zp..ol..rt..3c..up..cm..k2..yn..gx..pr..mp..mv..mn..ib..td..cs..iy..6u..zh..rc..uq..px..gh..ev..uj..jg..hd..9r..6s..4o..in..np..19..ni..kk..qf..a2..ql..0l..wy..hr..ei..sd..jw..et..ox..pw..sf..zv..qo..dd..pw..ds..wc..jq..yo..cs..2b..hf..lf..x9..zw..od..ax..xn..bo..km..bv..oi..ak..sk..uy..qp..ye..61..ij..av..qv..a0..wh..pi..3t..sb..bo..c2..ra..k1..l0..va..cb..le..8f..yb..mt..6a..9w..l3..zk..dm..fv..nn..ze..hh..zl..pe..at..p9..ol..ey..5k..uk..vb..k2..dj..ih..ti..a7..ka..ju..yh..g2..bt..gz..xe..0a..dr..oy..wj..kn..dt..32..aa..vr..5x..rg..qr..zf..fr..qb..xs..j1..p5..rd..wz..xk..a8..yi..83..lg..dc..4g..gw..0m..v8..gl..ay..g3..wd..0j..lr..1 Windows Terminal – A sample profiles.json (settings) file – Win10.Guru
Go to ...

RSS Feed

Windows Terminal – A sample profiles.json (settings) file


As we reported here at Win10.Guru earlier, the Windows Terminal Preview was released a few weeks ago. I must say I like it very much,  it has replaced my PowerShell, PowerShell Core, WSL, and Command Prompt. In fact, I use it now exclusively whenever I need to work with a command-line interface in Windows.

Click screenshots to open enlarged in a new tab.

In this post, we will look at the Windows Terminal settings for added applications (WSL, PowerShell Core). All settings are stored in a file named profiles.json, a JavaScript Object Notation file located in the following folder:

%userprofile%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState

You can read and download the sample profiles.json file shown in this post on OneDrive: profiles.json

Basics

Some basics first. The profiles.json file contains, in addition to a few global settings, sections for keyboard shortcuts (“keybindings”), terminal shell profiles (“profiles”), and color schemes (“schemes”). Each section contains modules. The user can add, delete and edit individual modules in each section, where each module contains a single keyboard shortcut, color scheme or shell profile.​ For instance to add Suse Linux to Windows Terminal, a module for it needs to be added to the profiles section, whereas adding a background image to PowerShell is accomplished by editing the PowerShell module.

Each section starts with square bracket [ and ends with ], (square bracket followed by comma), except the last section which ends just with ] (square bracket). Each module within a section starts with a curly bracket { and ends with }, (curly bracket followed by comma), except the last module in section which ends just with } (curly bracket):

– Closing bracket for all sections except last: ],
– Closing bracket for last section: ]
– Closing bracket for all modules except last: },
– Closing bracket for last module: }

By default, Windows Terminal has two shell profiles, one for Windows native PowerShell and one for Command Prompt. To add one for WSL (Windows Subsystem for Linux) with various distros and the PowerShell Core to Windows Terminal, see the following tutorials:

Enable or Disable Windows Subsystem for Linux WSL in Windows 10
Install Windows Subsystem for Linux (WSL) Distros in Windows 10
Install PowerShell Core

Edit settings

A screenshot from Code Writer shows my sample profiles.json profile for Suse Linux:

Let’s look what I have done here, where the line numbers refer to the screenshot above:

– Line 297: I’ve added a background image to Suse Linux. Notice that because the path is given as a URI, the normal backslash \ use in WIndows paths as folder separator does not work here. You need to use forward slash / instead.
– Line 298: I’ve set background image opacity to 30%
– Line 299: Stretch the background image dynamically, you can also use stretch or fill
– Line 301: Selected one of the default color schemes
– Line 302: The command to start WSL in Windows Terminal
– Line 305: Changed the Suse font to Lucida Console
– Line 306: Changed the font size to 12
– Line 307: The GUID for Suse Linux
– Line 309: Added an icon for Suse
– Line 310: Changed the name to be shown in the Windows Terminal menu
– Line 315; As this is the last profile module, the closing bracket is not followed by comma

To add WSL Linux distros to Windows Terminal, you will need the GUID for each distro (line 307). To find them, open the Registry Editor and browse to the following key:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateRepository\Cache\PackageFamily\Data\

Now search (Edit > Find) for the distro. When found, open the string Publisher. the part after CN= is the GUID. In my case now, the GUID 15720A30-FA72-4BF5-8077-C1376E0B561C was found under key 79:

For the PowerShell Core GUID, browse to key HKCR\Installer\Products\ and search PowerShell with version number, PowerShell 7 as I write this. PS Core GUID can be found in the string named Production:

Be careful when editing or adding modules for keyboard shortcuts, color schemes or application profiles. As always with any code, a simple missing comma might make your profiles.json unusable, in which case you will get an error message:

That’s it. More about Windows Terminal later.

Kari

Author: Kari Finn

A former Windows Insider MVP, Kari started in computing in the mid 80’s writing code for VAX / VMS systems. Since then, he’s worked in a variety of IT positions. He specializes in Windows image capture, customization, repair and deployment as well as Hyper-V virtualization. Kari is a proud Team Member at number #1 Windows site TenForums.com.

Leave a Reply