Skip to content

Commit

Permalink
fix: use config values
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Jul 24, 2022
1 parent 77bfa31 commit effbc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pipe/hostname/hostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func (Pipe) Message(c *context.Context) string {
}
}

f, err = figletlib.GetFontByName(c.Config.Hostname.FigletFontDir, "standard")
f, err = figletlib.GetFontByName(c.Config.Hostname.FigletFontDir, c.Config.Hostname.FigletFont)
if err != nil {
return ""
}
renderStr := figletlib.SprintMsg(hostname, f, 80, f.Settings(), "left")
renderStr := figletlib.SprintMsg(hostname, f, c.Width, f.Settings(), "left")

colors := func() string {
colors := colorGrid(lipgloss.Width(renderStr), lipgloss.Height(renderStr))
Expand Down

0 comments on commit effbc9a

Please sign in to comment.