fix: remove fish from autocomplete
This commit is contained in:
parent
dd0f328a65
commit
6ef15e0a26
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue