提交 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) { ...@@ -37,7 +37,7 @@ func alias(command *Command, args *Args) {
utils.Check(fmt.Errorf("Unknown shell")) 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) shell = filepath.Base(shell)
var validShell bool var validShell bool
for _, s := range shells { for _, s := range shells {
...@@ -65,6 +65,8 @@ func alias(command *Command, args *Args) { ...@@ -65,6 +65,8 @@ func alias(command *Command, args *Args) {
profile = "~/.profile" profile = "~/.profile"
case "fish": case "fish":
profile = "~/.config/fish/config.fish" profile = "~/.config/fish/config.fish"
case "tcsh":
profile = "~/.tcshrc"
default: default:
profile = "your profile" profile = "your profile"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册