@@ -8,6 +8,7 @@ import (
8 "github.com/charmbracelet/bubbles/v2/textinput"
8 "github.com/charmbracelet/bubbles/v2/textinput"
9 tea "github.com/charmbracelet/bubbletea/v2"
9 tea "github.com/charmbracelet/bubbletea/v2"
10 "github.com/charmbracelet/crush/internal/config"
10 "github.com/charmbracelet/crush/internal/config"
11+ "github.com/charmbracelet/crush/internal/fsext"
11 "github.com/charmbracelet/crush/internal/tui/styles"
12 "github.com/charmbracelet/crush/internal/tui/styles"
12 "github.com/charmbracelet/lipgloss/v2"
13 "github.com/charmbracelet/lipgloss/v2"
@@ -144,7 +145,7 @@ func (a *APIKeyInput) View() string {
144 inputView := a.input.View()
145 inputView := a.input.View()
146 dataPath := config.GlobalConfigData()
147 dataPath := config.GlobalConfigData()
147− dataPath = strings.Replace(dataPath, config.HomeDir(), "~", 1)
148+ dataPath = strings.Replace(dataPath, fsext.HomeDir(), "~", 1)
148 helpText := styles.CurrentTheme().S().Muted.
149 helpText := styles.CurrentTheme().S().Muted.
149 Render(fmt.Sprintf("This will be written to the global configuration: %s", dataPath))
150 Render(fmt.Sprintf("This will be written to the global configuration: %s", dataPath))