Skip to content

Commit 16ec55b

Browse files
authored
feat: added xonsh (#563)
1 parent 5ddc862 commit 16ec55b

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

examples/settings/set-shell-xonsh.gif

17.8 KB
Loading
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Output examples/settings/set-shell-xonsh.gif
2+
3+
Set FontSize 38
4+
Set Height 225
5+
6+
Set Shell xonsh
7+
8+
Sleep 1s
9+
Type "I am using xonsh."
10+
Sleep 2s

shell.go

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const (
99
osh = "osh"
1010
powershell = "powershell"
1111
pwsh = "pwsh"
12+
xonsh = "xonsh"
1213
zsh = "zsh"
1314
)
1415

@@ -69,4 +70,7 @@ var Shells = map[string]Shell{
6970
Env: []string{"PS1=\\[\\e[38;2;90;86;224m\\]> \\[\\e[0m\\]"},
7071
Command: []string{"osh", "--norc"},
7172
},
73+
xonsh: {
74+
Command: []string{"xonsh", "--no-rc", "-D", "PROMPT=\033[;38;2;91;86;224m>\033[m "},
75+
},
7276
}

0 commit comments

Comments
 (0)