diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | bash.go | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -15,3 +15,4 @@ goimports: clean: rm -f *.pb.go -rm -f go.* + go-mod-clean purge @@ -7,14 +7,14 @@ import ( "os" "path/filepath" - "go.wit.com/lib/gui/shell" + "go.wit.com/lib/config" ) // makes a bash autocomplete file for your command func DoBash(argname string) { if homeDir, err := os.UserHomeDir(); err == nil { filename := filepath.Join(homeDir, ".local/share/bash-completion/completions", argname) - if shell.Exists(filename) { + if config.Exists(filename) { } else { if f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil { f.Write([]byte(MakeBashCompletionText(argname))) |
