From f0e2ae3e9d08427107e249f680ba54e387b5dd9c Mon Sep 17 00:00:00 2001 From: rsteube Date: Fri, 3 Jan 2025 20:35:44 +0100 Subject: [PATCH] added osh --- examples/settings/set-shell-osh.gif | Bin 0 -> 16860 bytes examples/settings/set-shell-osh.tape | 10 ++++++++++ shell.go | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 examples/settings/set-shell-osh.gif create mode 100644 examples/settings/set-shell-osh.tape diff --git a/examples/settings/set-shell-osh.gif b/examples/settings/set-shell-osh.gif new file mode 100644 index 0000000000000000000000000000000000000000..2674cae648d501ba69a92e38b594c24d3e40547c GIT binary patch literal 16860 zcmeHucT|)8)@6XuLIME-1f)0VhF%3i@4a`VBOoXsC@8&`(2F2VI!G@fD4kHGcR}d{ z1nEUY8Q%BKo$vi-=38@T=9{u+ZjwK;){~X2oaeXq*=L_~lvS0)#BFPVtAL9ee!%U6 z3ITwNVNr5olXBvavI4QNfjGE8I06@lhl`7k3xVU|5#dqr;{$>CWQ_QfYy^0?gm5kp z5E}#`15t>ANghDJBoInYVp2*HFqniCNkS$_Ldgaty$23I(z;v#>E+vvK6IGpVx+$={_S;@}nKGGIvuJ=2VduRZ&q> zaf?ycOH#Lesv*Uz;Tol76RG7Ett~IAt@%nvSyoSuS5I3@&*_<=iKU@Ol!;resnMjl z5!%A2-O_B)(l^0cOU}lm%Emj=R$ujjwUvX5yQ7kTlXbb1b-kOVzT1l=cYSI1Cw`A2 zvOFCvyu#BS8%jMjm-kO7eD3A)JTNHGTK+{ylO}7KY+Nv z+e#SpCI`sNdA8X3Be7(oq$%QHoq&BfSk($U0cu-31v~sQK>8Ji-ili zE}`p+1`-+NV`x?D-wdX3=vP<_))xP@N3QY&HJBQpM3lB>3z$=*UnHP2Ceqiqjhu&xAkcIyOZtl zBK172j<&OJ^9>Kbj&{7iI9Tb4y4gdOZp7zHNzkXhxeET}~ z@#D=60FPrOh`z&VC76J{Y$XINf>{ZLDsila!Hk?&!{Lr)s}Z!mnAJ$e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+}#$ge%C*bx43`)2^iU zq2oo;;W`HL4+EjIo6p>#bHhe#zH(Mqz4Hq=!GV_jGt|??N6L zyBmBYEAKYs&U6`}vV(~7fik_U25gxI?(c~@*$zjM8(U~JKXU2|xTnvqvBFMzS|?I4F9u-FcIQXXtEhAl_DP6@M(eZ3_G69QPmVlK*D!_22Qr(>(V@wSvi7AMhixmywQtdzn{%o_IOi1mDT)hYSyHK+$$X0{^=h{r7C%M zTxNR-Q|)x)F0gLfA9v^GQ|%=wOHTr;y3&%E-G*Wsq5QKjYW*m5st`#%Oa)P@l^_`C+DL6s zrjes`hw@C-%Vo6aemEa%OlrAihF)Z0fXk`tOsT;;vkuO4m!xXbQlq#<3inx*$ye-O zYA4PMZMIY2-w=`WS*P92U334@^2V~m>fk(gc(%g4JaW^>0PM%-(BscW^u5xXacwY4 uR|HSp=+X8t!>>X-f8QsYO$Gkh5x<&kW&hvX9r!vnPg literal 0 HcmV?d00001 diff --git a/examples/settings/set-shell-osh.tape b/examples/settings/set-shell-osh.tape new file mode 100644 index 000000000..625ffd160 --- /dev/null +++ b/examples/settings/set-shell-osh.tape @@ -0,0 +1,10 @@ +Output examples/settings/set-shell-osh.gif + +Set FontSize 38 +Set Height 225 + +Set Shell osh + +Sleep 1s +Type "I am using OSH." +Sleep 2s diff --git a/shell.go b/shell.go index 111675f63..bdc0dd229 100644 --- a/shell.go +++ b/shell.go @@ -6,6 +6,7 @@ const ( cmdexe = "cmd" fish = "fish" nushell = "nu" + osh = "osh" powershell = "powershell" pwsh = "pwsh" zsh = "zsh" @@ -64,4 +65,8 @@ var Shells = map[string]Shell{ nushell: { Command: []string{"nu", "--execute", "$env.PROMPT_COMMAND = {''}"}, }, + osh: { + Env: []string{"PS1=\\[\\e[38;2;90;86;224m\\]> \\[\\e[0m\\]"}, + Command: []string{"osh", "--norc"}, + }, }