From 0017e4442365e587b781ed0f460e98510acb3eda Mon Sep 17 00:00:00 2001 From: mattbw Date: Wed, 22 Oct 2014 04:36:33 +0100 Subject: [PATCH] Support tcsh. This just adds tcsh to the list of supported shells, with its profile as ~/.tcshrc. --- commands/alias.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/alias.go b/commands/alias.go index fccd4061..bf5faa26 100644 --- a/commands/alias.go +++ b/commands/alias.go @@ -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" } -- GitLab