Skip to content

Commit 9392a46

Browse files
committed
regard linux default shell
Signed-off-by: Yuze Fu <[email protected]>
1 parent 2b78371 commit 9392a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/limactl/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func shellAction(cmd *cobra.Command, args []string) error {
108108
}
109109
logrus.Debugf("changeDirCmd=%q", changeDirCmd)
110110

111-
script := fmt.Sprintf("%s ; exec bash --login", changeDirCmd)
111+
script := fmt.Sprintf("%s ; exec $SHELL --login", changeDirCmd)
112112
if len(args) > 1 {
113113
script += fmt.Sprintf(
114114
" -c %s",

0 commit comments

Comments
 (0)