@@ -8,6 +8,7 @@ import (
88 "github.com/charmbracelet/bubbles/v2/textinput"
99 tea "github.com/charmbracelet/bubbletea/v2"
1010 "github.com/charmbracelet/crush/internal/config"
11+ "github.com/charmbracelet/crush/internal/fsext"
1112 "github.com/charmbracelet/crush/internal/tui/styles"
1213 "github.com/charmbracelet/lipgloss/v2"
1314)
@@ -144,7 +145,7 @@ func (a *APIKeyInput) View() string {
144145 inputView := a.input.View()
145146
146147 dataPath := config.GlobalConfigData()
147− dataPath = strings.Replace(dataPath, config.HomeDir(), "~", 1)
148+ dataPath = strings.Replace(dataPath, fsext.HomeDir(), "~", 1)
148149 helpText := styles.CurrentTheme().S().Muted.
149150 Render(fmt.Sprintf("This will be written to the global configuration: %s", dataPath))
150151