diff --git a/examples/settings/set-shell-osh.gif b/examples/settings/set-shell-osh.gif new file mode 100644 index 000000000..2674cae64 Binary files /dev/null and b/examples/settings/set-shell-osh.gif differ 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"}, + }, }