Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fish shell completions
Browse files Browse the repository at this point in the history
Original code didn't work at all and failed to install
if the ~/.config/fish/completions/ directory didn't exist
synfinatic committed Oct 17, 2023
1 parent 882ce51 commit 73062e0
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
### Bugs

* Fix bug where JsonStore was not being created #612
* Fix fish shell completion

### New Features

1 change: 1 addition & 0 deletions internal/helper/aws-sso.fish
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ function __complete_aws-sso
and set COMP_LINE "$COMP_LINE "
{{ .Executable }}
end
complete -f -c aws-sso -a "(__complete_aws-sso)"
4 changes: 4 additions & 0 deletions internal/utils/fileedit.go
Original file line number Diff line number Diff line change
@@ -115,6 +115,10 @@ func (f *FileEdit) GenerateNewFile(configFile string) ([]byte, error) {
// read & write up to the prefix
input, err := os.Open(configFile)
if err != nil {
if err = EnsureDirExists(configFile); err != nil {
return []byte{}, err
}

input, err = os.Create(configFile)
if err != nil {
return []byte{}, err

0 comments on commit 73062e0

Please sign in to comment.