提交 546d7d88 编写于 作者: M mattbw

Give correct eval stanza for csh/tcsh.

These shells don't support $() notation, so fall back to `` notation.
上级 78d0cee0
......@@ -83,9 +83,12 @@ func alias(command *Command, args *Args) {
fmt.Println(msg)
var eval string
if shell == "fish" {
switch shell {
case "fish":
eval = `eval (hub alias -s)`
} else {
case "csh", "tcsh":
eval = "eval \"`hub alias -s`\""
default:
eval = `eval "$(hub alias -s)"`
}
fmt.Println(eval)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册