Skip to content

Commit 71baecf

Browse files
feat(autocomplete): support linux (#682)
1 parent 5bc4e92 commit 71baecf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/namespaces/autocomplete/autocomplete.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ var autocompleteScripts = map[string]autocompleteScript{
6464
CompleteScript: `eval "$(scw autocomplete script shell=bash)"`,
6565
ShellConfigurationFile: map[string]string{
6666
"darwin": path.Join(os.Getenv("HOME"), ".bash_profile"),
67+
"linux": path.Join(os.Getenv("HOME"), ".bashrc"),
6768
},
6869
},
6970
"fish": {
@@ -87,6 +88,7 @@ var autocompleteScripts = map[string]autocompleteScript{
8788
CompleteScript: `eval (scw autocomplete script shell=fish)`,
8889
ShellConfigurationFile: map[string]string{
8990
"darwin": path.Join(os.Getenv("HOME"), ".config/fish/config.fish"),
91+
"linux": path.Join(os.Getenv("HOME"), ".config/fish/config.fish"),
9092
},
9193
},
9294
"zsh": {
@@ -123,6 +125,7 @@ var autocompleteScripts = map[string]autocompleteScript{
123125
CompleteScript: `eval "$(scw autocomplete script shell=zsh)"`,
124126
ShellConfigurationFile: map[string]string{
125127
"darwin": path.Join(os.Getenv("HOME"), ".zshrc"),
128+
"linux": path.Join(os.Getenv("HOME"), ".zshrc"),
126129
},
127130
},
128131
}

0 commit comments

Comments
 (0)