Skip to content

Commit

Permalink
Adding plain shell type
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyr committed Dec 20, 2017
1 parent f3d48eb commit 4d570e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gbt/core/car/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ func decorateShell(seq string) (ret string) {
ret = fmt.Sprintf("%%{%s%%}", seq)
} else if Shell == "_bash" {
ret = fmt.Sprintf("\\[%s\\]", seq)
} else if Shell == "plain" {
ret = fmt.Sprintf("%s", seq)
} else {
// bash
ret = fmt.Sprintf("\001%s\002", seq)
}

Expand Down

0 comments on commit 4d570e4

Please sign in to comment.