diff --git a/defaults.go b/defaults.go index 83c91ad..ba71d15 100644 --- a/defaults.go +++ b/defaults.go @@ -83,9 +83,12 @@ var defaults = Config{ RepoConflicted: "\u273C", RepoStashed: "\u2691", - VenvIndicator: "\uE235", - NodeIndicator: "\u2B22", - RvmIndicator: "\uE92B", + DotEnvIndicator: "\u2235", + KubeIndicator: "\u2388", + NixShellIndicator: "\uF313", + NodeIndicator: "\u2B22", + RvmIndicator: "\uE92B", + VenvIndicator: "\uE235", }, "patched": { Lock: "\uE0A2", @@ -106,9 +109,12 @@ var defaults = Config{ RepoConflicted: "\u273C", RepoStashed: "\u2691", - VenvIndicator: "\uE235", - NodeIndicator: "\u2B22", - RvmIndicator: "\uE92B", + DotEnvIndicator: "\u2235", + KubeIndicator: "\u2388", + NixShellIndicator: "\uF313", + NodeIndicator: "\u2B22", + RvmIndicator: "\uE92B", + VenvIndicator: "\uE235", }, "flat": { RepoDetached: "\u2693", @@ -120,9 +126,12 @@ var defaults = Config{ RepoConflicted: "\u273C", RepoStashed: "\u2691", - VenvIndicator: "\uE235", - NodeIndicator: "\u2B22", - RvmIndicator: "\uE92B", + DotEnvIndicator: "\u2235", + KubeIndicator: "\u2388", + NixShellIndicator: "\uF313", + NodeIndicator: "\u2B22", + RvmIndicator: "\uE92B", + VenvIndicator: "\uE235", }, }, Shells: ShellMap{ diff --git a/segment-dotenv.go b/segment-dotenv.go index 2e5344f..1b9aae5 100644 --- a/segment-dotenv.go +++ b/segment-dotenv.go @@ -21,7 +21,7 @@ func segmentDotEnv(p *powerline) []pwl.Segment { } return []pwl.Segment{{ Name: "dotenv", - Content: "\u2235", + Content: p.symbols.DotEnvIndicator, Foreground: p.theme.DotEnvFg, Background: p.theme.DotEnvBg, }} diff --git a/segment-kube.go b/segment-kube.go index 5a28663..6f775de 100644 --- a/segment-kube.go +++ b/segment-kube.go @@ -1,7 +1,6 @@ package main import ( - "fmt" pwl "github.com/justjanne/powerline-go/powerline" "io/ioutil" "os" @@ -113,7 +112,7 @@ func segmentKube(p *powerline) []pwl.Segment { kubeIconHasBeenDrawnYet = true segments = append(segments, pwl.Segment{ Name: "kube-cluster", - Content: fmt.Sprintf("⎈ %s", cluster), + Content: p.symbols.KubeIndicator + " " + cluster, Foreground: p.theme.KubeClusterFg, Background: p.theme.KubeClusterBg, }) @@ -122,7 +121,7 @@ func segmentKube(p *powerline) []pwl.Segment { if namespace != "" { content := namespace if !kubeIconHasBeenDrawnYet { - content = fmt.Sprintf("⎈ %s", content) + content = p.symbols.KubeIndicator + " " + content } segments = append(segments, pwl.Segment{ Name: "kube-namespace", diff --git a/segment-nix-shell.go b/segment-nix-shell.go index af2ad1c..4439045 100644 --- a/segment-nix-shell.go +++ b/segment-nix-shell.go @@ -13,7 +13,7 @@ func segmentNixShell(p *powerline) []pwl.Segment { } return []pwl.Segment{{ Name: "nix-shell", - Content: "\uf313", + Content: p.symbols.NixShellIndicator, Foreground: p.theme.NixShellFg, Background: p.theme.NixShellBg, }} diff --git a/themes.go b/themes.go index f52c989..c417931 100644 --- a/themes.go +++ b/themes.go @@ -20,9 +20,12 @@ type SymbolTemplate struct { RepoConflicted string RepoStashed string - VenvIndicator string - NodeIndicator string - RvmIndicator string + DotEnvIndicator string + KubeIndicator string + NixShellIndicator string + NodeIndicator string + RvmIndicator string + VenvIndicator string } // Theme definitions