fix: remove fish from autocomplete
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
knoflook 2021-11-24 12:11:35 +01:00
parent dd0f328a65
commit 6ef15e0a26
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
1 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ Example:
Supported shells are as follows: Supported shells are as follows:
fish fizsh
zsh zsh
bash bash
`, `,
@ -69,16 +69,16 @@ Supported shells are as follows:
} }
supportedShells := map[string]bool{ supportedShells := map[string]bool{
"bash": true, "bash": true,
"zsh": true, "zsh": true,
"fish": true, "fizsh": true,
} }
if _, ok := supportedShells[shellType]; !ok { if _, ok := supportedShells[shellType]; !ok {
logrus.Fatalf("%s is not a supported shell right now, sorry", shellType) logrus.Fatalf("%s is not a supported shell right now, sorry", shellType)
} }
if shellType == "fish" { if shellType == "fizsh" {
shellType = "zsh" // handled the same on the autocompletion side shellType = "zsh" // handled the same on the autocompletion side
} }