Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added examples/settings/set-shell-elvish.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions examples/settings/set-shell-elvish.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Output examples/settings/set-shell-elvish.gif

Set FontSize 38
Set Height 225

Set Shell elvish

Sleep 1s
Type "I am using elvish."
Sleep 2s
4 changes: 4 additions & 0 deletions shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package main
const (
bash = "bash"
cmdexe = "cmd"
elvish = "elvish"
fish = "fish"
nushell = "nu"
powershell = "powershell"
Expand Down Expand Up @@ -64,4 +65,7 @@ var Shells = map[string]Shell{
nushell: {
Command: []string{"nu", "--execute", "$env.PROMPT_COMMAND = {''}"},
},
elvish: {
Command: []string{"elvish", "-c", `use os; var rc = (os:temp-file 'vhs-'); try { echo 'set edit:prompt = { styled "> " "#5B56E0" };set edit:rprompt = { }' > $rc; elvish -rc $rc[name] } finally { os:remove $rc[name] }`},
},
}
Loading