提交 0017e444 编写于 作者: M mattbw

Support tcsh.

This just adds tcsh to the list of supported shells, with its profile as
~/.tcshrc.
上级 6680229f
......@@ -37,7 +37,7 @@ func alias(command *Command, args *Args) {
utils.Check(fmt.Errorf("Unknown shell"))
}
shells := []string{"bash", "zsh", "sh", "ksh", "csh", "fish"}
shells := []string{"bash", "zsh", "sh", "ksh", "csh", "tcsh", "fish"}
shell = filepath.Base(shell)
var validShell bool
for _, s := range shells {
......@@ -65,6 +65,8 @@ func alias(command *Command, args *Args) {
profile = "~/.profile"
case "fish":
profile = "~/.config/fish/config.fish"
case "tcsh":
profile = "~/.tcshrc"
default:
profile = "your profile"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册