From 5398d895e3a841c81df7079eb3a3c9a4a9904829 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 05:20:36 -0500 Subject: maybe no shell dep now --- bash.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash.go') diff --git a/bash.go b/bash.go index fd5ee7e..1ff60bb 100644 --- a/bash.go +++ b/bash.go @@ -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))) -- cgit v1.2.3