--tmux: Export bash functions

Fix #4001
This commit is contained in:
Junegunn Choi
2024-09-22 00:31:11 +09:00
parent 53bcdc4294
commit 4161403a1d
5 changed files with 50 additions and 23 deletions

View File

@@ -9,7 +9,10 @@ import (
"golang.org/x/sys/unix"
)
func sh() (string, error) {
func sh(bash bool) (string, error) {
if bash {
return "bash", nil
}
return "sh", nil
}