Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package powerline-go for openSUSE:Factory checked in at 2026-05-11 16:57:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powerline-go (Old) and /work/SRC/openSUSE:Factory/.powerline-go.new.1966 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "powerline-go" Mon May 11 16:57:05 2026 rev:4 rq:1352308 version:1.26 Changes: -------- --- /work/SRC/openSUSE:Factory/powerline-go/powerline-go.changes 2025-05-20 09:39:29.865130925 +0200 +++ /work/SRC/openSUSE:Factory/.powerline-go.new.1966/powerline-go.changes 2026-05-11 17:07:20.841490921 +0200 @@ -1,0 +2,14 @@ +Sun May 3 18:12:16 UTC 2026 - Dirk Müller <[email protected]> + +- update to 1.26: + * Fix typo in args.go, s/choosen/chosen + * Add ability to use the FQDN as the hostname + * Make more segment indicators configurable + * fix hardcoded .docker path + * Update segment-aws to use profile OR region + * fix segment-gcp crashes with simple configuration + * feat: segment-azure for displaying current active Azure + subscription and resource group + * Add version flag + +------------------------------------------------------------------- Old: ---- powerline-go-1.25.tar.gz New: ---- powerline-go-1.26.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powerline-go.spec ++++++ --- /var/tmp/diff_new_pack.CZhdad/_old 2026-05-11 17:07:21.657524497 +0200 +++ /var/tmp/diff_new_pack.CZhdad/_new 2026-05-11 17:07:21.661524662 +0200 @@ -1,7 +1,7 @@ # # spec file for package powerline-go # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: powerline-go -Version: 1.25 +Version: 1.26 Release: 0 Summary: A Powerline like prompt for Bash, ZSH and Fish License: GPL-3.0-or-later @@ -26,7 +26,7 @@ Source0: https://github.com/justjanne/powerline-go/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: vendor.tar.gz BuildRequires: golang-packaging -BuildRequires: golang(API) = 1.24 +BuildRequires: golang(API) = 1.26 %{go_nostrip} %description ++++++ powerline-go-1.25.tar.gz -> powerline-go-1.26.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/.goreleaser.yaml new/powerline-go-1.26/.goreleaser.yaml --- old/powerline-go-1.25/.goreleaser.yaml 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/.goreleaser.yaml 2026-01-14 15:30:15.000000000 +0100 @@ -12,7 +12,7 @@ - amd64 - arm - arm64 - - "386" + - '386' goos: - darwin - linux @@ -22,7 +22,7 @@ - openbsd ignore: - goos: darwin - goarch: "386" + goarch: '386' - goos: openbsd goarch: arm flags: @@ -30,9 +30,10 @@ ldflags: - -s - -w + - -X github.com/justjanne/powerline-go/powerline.Version={{ .Version }} archives: - - name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}" + - name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}' format: binary checksum: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/README.md new/powerline-go-1.26/README.md --- old/powerline-go-1.25/README.md 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/README.md 2026-01-14 15:30:15.000000000 +0100 @@ -200,6 +200,8 @@ Show the older, original icon for SSH connections -colorize-hostname Colorize the hostname based on a hash of itself, or use the PLGO_HOSTNAMEFG and PLGO_HOSTNAMEBG env vars (both need to be set). + -fqdn-hostname + Use the longer fully qualified domain name as the hostname -condensed Remove spacing between segments -cwd-max-depth int @@ -248,12 +250,12 @@ (default "patched") -modules string The list of modules to load, separated by ',' - (valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl) + (valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl, azure) Unrecognized modules will be invoked as 'powerline-go-MODULE' executable plugins and should output a (possibly empty) list of JSON objects that unmarshal to powerline-go's Segment structs. (default "venv,user,host,ssh,cwd,perms,git,hg,jobs,exit,root") -modules-right string The list of modules to load anchored to the right, for shells that support it, separated by ',' - (valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, wsl) + (valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, wsl, azure) Unrecognized modules will be invoked as 'powerline-go-MODULE' executable plugins and should output a (possibly empty) list of JSON objects that unmarshal to powerline-go's Segment structs. -newline Show the prompt on a new line @@ -266,7 +268,7 @@ Use '~' for your home dir. You may need to escape this character to avoid shell substitution. -priority string Segments sorted by priority, if not enough space exists, the least priorized segments are removed first. Separate with ',' - (valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl) + (valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl, azure) (default "root,cwd,user,host,ssh,perms,git-branch,git-status,hg,jobs,exit,cwd-path") -shell string Set this to your shell type diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/args.go new/powerline-go-1.26/args.go --- old/powerline-go-1.25/args.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/args.go 2026-01-14 15:30:15.000000000 +0100 @@ -10,6 +10,7 @@ CwdMaxDepth *int CwdMaxDirSize *int ColorizeHostname *bool + FqdnHostname *bool HostnameOnlyIfSSH *bool SshAlternateIcon *bool EastAsianWidth *bool @@ -46,6 +47,7 @@ IgnoreWarnings *bool Time *string ViMode *string + Version *bool } var args = arguments{ @@ -66,6 +68,10 @@ "colorize-hostname", defaults.ColorizeHostname, comments("Colorize the hostname based on a hash of itself, or use the PLGO_HOSTNAMEFG and PLGO_HOSTNAMEBG env vars (both need to be set).")), + FqdnHostname: flag.Bool( + "fqdn-hostname", + defaults.FqdnHostname, + comments("Use the longer fully qualified domain name as the hostname")), HostnameOnlyIfSSH: flag.Bool( "hostname-only-if-ssh", defaults.HostnameOnlyIfSSH, @@ -127,19 +133,19 @@ "modules", strings.Join(defaults.Modules, ","), commentsWithDefaults("The list of modules to load, separated by ','", - "(valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl)", + "(valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl, azure)", "Unrecognized modules will be invoked as 'powerline-go-MODULE' executable plugins and should output a (possibly empty) list of JSON objects that unmarshal to powerline-go's Segment structs.")), ModulesRight: flag.String( "modules-right", strings.Join(defaults.ModulesRight, ","), comments("The list of modules to load anchored to the right, for shells that support it, separated by ','", - "(valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, wsl)", + "(valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, wsl, azure)", "Unrecognized modules will be invoked as 'powerline-go-MODULE' executable plugins and should output a (possibly empty) list of JSON objects that unmarshal to powerline-go's Segment structs.")), Priority: flag.String( "priority", strings.Join(defaults.Priority, ","), commentsWithDefaults("Segments sorted by priority, if not enough space exists, the least priorized segments are removed first. Separate with ','", - "(valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl)")), + "(valid choices: aws, bzr, cwd, direnv, docker, docker-context, dotenv, duration, exit, fossil, gcp, git, gitlite, goenv, hg, host, jobs, kube, load, newline, nix-shell, node, perlbrew, perms, plenv, rbenv, root, rvm, shell-var, shenv, ssh, svn, termtitle, terraform-workspace, time, user, venv, vgo, vi-mode, wsl, azure)")), MaxWidthPercentage: flag.Int( "max-width", defaults.MaxWidthPercentage, @@ -200,7 +206,7 @@ "time", defaults.Time, comments("The layout string how a reference time should be represented.", - "The reference time is predefined and not user choosen.", + "The reference time is predefined and not user chosen.", "Consult the golang documentation for details: https://pkg.go.dev/time#example-Time.Format")), DurationMin: flag.String( "duration-min", @@ -226,4 +232,8 @@ "vi-mode", defaults.ViMode, comments("The current vi-mode (eg. KEYMAP for zsh) for vi-module module")), + Version: flag.Bool( + "version", + false, + comments("Print the current version and exit")), } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/config.go new/powerline-go-1.26/config.go --- old/powerline-go-1.25/config.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/config.go 2026-01-14 15:30:15.000000000 +0100 @@ -17,6 +17,7 @@ CwdMaxDepth int `json:"cwd-max-depth"` CwdMaxDirSize int `json:"cwd-max-dir-size"` ColorizeHostname bool `json:"colorize-hostname"` + FqdnHostname bool `json:"fqdn-hostname"` HostnameOnlyIfSSH bool `json:"hostname-only-if-ssh"` SshAlternateIcon bool `json:"alternate-ssh-icon"` EastAsianWidth bool `json:"east-asian-width"` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/defaults.go new/powerline-go-1.26/defaults.go --- old/powerline-go-1.25/defaults.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/defaults.go 2026-01-14 15:30:15.000000000 +0100 @@ -6,6 +6,7 @@ CwdMaxDepth: 5, CwdMaxDirSize: -1, ColorizeHostname: false, + FqdnHostname: false, HostnameOnlyIfSSH: false, SshAlternateIcon: false, EastAsianWidth: false, @@ -83,9 +84,12 @@ 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 +110,12 @@ 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 +127,12 @@ RepoConflicted: "\u273C", RepoStashed: "\u2691", - VenvIndicator: "\uE235", - NodeIndicator: "\u2B22", - RvmIndicator: "\uE92B", + DotEnvIndicator: "\u2235", + KubeIndicator: "\u2388", + NixShellIndicator: "\uF313", + NodeIndicator: "\u2B22", + RvmIndicator: "\uE92B", + VenvIndicator: "\uE235", }, }, Shells: ShellMap{ @@ -147,7 +157,7 @@ EvalPromptRightSuffix: `"`, }, "bare": { - ColorTemplate: "%s", + ColorTemplate: "%s", RootIndicator: "$", EscapedBackslash: `\`, EscapedBacktick: "`", @@ -198,6 +208,9 @@ DotEnvFg: 15, // white DotEnvBg: 55, // purple + AzureFg: 15, // white + AzureBg: 26, // Azure blue + AWSFg: 15, // white AWSBg: 172, // AWS orange diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/main.go new/powerline-go-1.26/main.go --- old/powerline-go-1.25/main.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/main.go 2026-01-14 15:30:15.000000000 +0100 @@ -78,6 +78,7 @@ "docker": segmentDocker, "docker-context": segmentDockerContext, "dotenv": segmentDotEnv, + "azure": segmentAzure, "duration": segmentDuration, "exit": segmentExitCode, "fossil": segmentFossil, @@ -124,6 +125,11 @@ func main() { flag.Parse() + if *args.Version { + fmt.Println(pwl.Version) + return + } + cfg := defaults err := cfg.Load() if err != nil { @@ -141,6 +147,8 @@ cfg.CwdMaxDirSize = *args.CwdMaxDirSize case "colorize-hostname": cfg.ColorizeHostname = *args.ColorizeHostname + case "fqdn-hostname": + cfg.FqdnHostname = *args.FqdnHostname case "hostname-only-if-ssh": cfg.HostnameOnlyIfSSH = *args.HostnameOnlyIfSSH case "alternate-ssh-icon": Binary files old/powerline-go-1.25/pg and new/powerline-go-1.26/pg differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/powerline/version.go new/powerline-go-1.26/powerline/version.go --- old/powerline-go-1.25/powerline/version.go 1970-01-01 01:00:00.000000000 +0100 +++ new/powerline-go-1.26/powerline/version.go 2026-01-14 15:30:15.000000000 +0100 @@ -0,0 +1,3 @@ +package powerline + +var Version = "development" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-aws.go new/powerline-go-1.26/segment-aws.go --- old/powerline-go-1.25/segment-aws.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-aws.go 2026-01-14 15:30:15.000000000 +0100 @@ -9,19 +9,31 @@ func segmentAWS(p *powerline) []pwl.Segment { profile := os.Getenv("AWS_PROFILE") region := os.Getenv("AWS_DEFAULT_REGION") - if profile == "" { + var content string = "" + + if len(profile) == 0 { profile = os.Getenv("AWS_VAULT") - if profile == "" { - return []pwl.Segment{} - } } - var r string - if region != "" { - r = " (" + region + ")" + + if len(region) == 0 { + region = os.Getenv("AWS_REGION") } + + if len(region) > 0 { + content = "(" + region + ")" + } + + if len(profile) > 0 { + content = profile +" "+ content + } + + if len(content) == 0 { + return []pwl.Segment{} + } + return []pwl.Segment{{ Name: "aws", - Content: profile + r, + Content: content, Foreground: p.theme.AWSFg, Background: p.theme.AWSBg, }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-azure.go new/powerline-go-1.26/segment-azure.go --- old/powerline-go-1.25/segment-azure.go 1970-01-01 01:00:00.000000000 +0100 +++ new/powerline-go-1.26/segment-azure.go 2026-01-14 15:30:15.000000000 +0100 @@ -0,0 +1,128 @@ +package main + +import ( + "bytes" + "encoding/json" + "os" + "path/filepath" + "strings" + + pwl "github.com/justjanne/powerline-go/powerline" +) + +// utf8BOM is the UTF-8 byte order mark that Azure CLI may add to JSON files +var utf8BOM = []byte{0xEF, 0xBB, 0xBF} + +type azureSubscription struct { + ID string `json:"id"` + Name string `json:"name"` + State string `json:"state"` + IsDefault bool `json:"isDefault"` +} + +type azureProfile struct { + Subscriptions []azureSubscription `json:"subscriptions"` +} + +func getAzureSubscription() string { + envSubID := os.Getenv("AZURE_SUBSCRIPTION_ID") + + home, err := os.UserHomeDir() + if err != nil { + return envSubID + } + + data, err := os.ReadFile(filepath.Join(home, ".azure", "azureProfile.json")) + if err != nil { + return envSubID + } + + data = bytes.TrimPrefix(data, utf8BOM) + + var profile azureProfile + if err := json.Unmarshal(data, &profile); err != nil { + return envSubID + } + + if envSubID != "" { + for _, sub := range profile.Subscriptions { + if sub.ID == envSubID { + return sub.Name + } + } + return envSubID + } + + var firstEnabled string + for _, sub := range profile.Subscriptions { + if sub.State != "Enabled" { + continue + } + if sub.IsDefault { + return sub.Name + } + if firstEnabled == "" { + firstEnabled = sub.Name + } + } + + return firstEnabled +} + +func getAzureResourceGroup() string { + if rg := os.Getenv("AZURE_DEFAULTS_GROUP"); rg != "" { + return rg + } + + home, err := os.UserHomeDir() + if err != nil { + return "" + } + + data, err := os.ReadFile(filepath.Join(home, ".azure", "config")) + if err != nil { + return "" + } + + inDefaults := false + for _, line := range strings.Split(string(data), "\n") { + line = strings.TrimSpace(line) + + if line == "[defaults]" { + inDefaults = true + continue + } + + if strings.HasPrefix(line, "[") { + inDefaults = false + continue + } + + if inDefaults && (strings.HasPrefix(line, "group ") || strings.HasPrefix(line, "group=")) { + if parts := strings.SplitN(line, "=", 2); len(parts) == 2 { + return strings.TrimSpace(parts[1]) + } + } + } + + return "" +} + +func segmentAzure(p *powerline) []pwl.Segment { + subscription := getAzureSubscription() + if subscription == "" { + return []pwl.Segment{} + } + + content := subscription + if rg := getAzureResourceGroup(); rg != "" { + content += " (" + rg + ")" + } + + return []pwl.Segment{{ + Name: "azure", + Content: content, + Foreground: p.theme.AzureFg, + Background: p.theme.AzureBg, + }} +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-docker_context.go new/powerline-go-1.26/segment-docker_context.go --- old/powerline-go-1.25/segment-docker_context.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-docker_context.go 2026-01-14 15:30:15.000000000 +0100 @@ -2,10 +2,10 @@ import ( "encoding/json" - pwl "github.com/justjanne/powerline-go/powerline" - "io/ioutil" "os" "path/filepath" + + pwl "github.com/justjanne/powerline-go/powerline" ) type DockerContextConfig struct { @@ -15,8 +15,14 @@ func segmentDockerContext(p *powerline) []pwl.Segment { context := "default" home, _ := os.LookupEnv("HOME") - contextFolder := filepath.Join(home, ".docker", "contexts") - configFile := filepath.Join(home, ".docker", "config.json") + + configDir, ok := os.LookupEnv("DOCKER_CONFIG") + if !ok { + configDir = filepath.Join(home, ".docker") + } + + contextFolder := filepath.Join(configDir, "contexts") + configFile := filepath.Join(configDir, "config.json") contextEnvVar := os.Getenv("DOCKER_CONTEXT") if contextEnvVar != "" { @@ -24,7 +30,7 @@ } else { stat, err := os.Stat(contextFolder) if err == nil && stat.IsDir() { - dockerConfigFile, err := ioutil.ReadFile(configFile) + dockerConfigFile, err := os.ReadFile(configFile) if err == nil { var dockerConfig DockerContextConfig err = json.Unmarshal(dockerConfigFile, &dockerConfig) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-dotenv.go new/powerline-go-1.26/segment-dotenv.go --- old/powerline-go-1.25/segment-dotenv.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-dotenv.go 2026-01-14 15:30:15.000000000 +0100 @@ -21,7 +21,7 @@ } return []pwl.Segment{{ Name: "dotenv", - Content: "\u2235", + Content: p.symbols.DotEnvIndicator, Foreground: p.theme.DotEnvFg, Background: p.theme.DotEnvBg, }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-gcp.go new/powerline-go-1.26/segment-gcp.go --- old/powerline-go-1.25/segment-gcp.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-gcp.go 2026-01-14 15:30:15.000000000 +0100 @@ -3,7 +3,6 @@ import ( "bytes" "fmt" - "io/ioutil" "log" "os" "os/exec" @@ -37,7 +36,7 @@ return "", err } - contents, err := ioutil.ReadFile(activeConfigPath) + contents, err := os.ReadFile(activeConfigPath) if err != nil { return "", err } @@ -78,7 +77,7 @@ return "", fmt.Errorf("%s is a directory", configPath) } - b, err := ioutil.ReadFile(configPath) + b, err := os.ReadFile(configPath) if err != nil { return "", err } @@ -95,7 +94,7 @@ b = b[:coreEnd] } - lines := bytes.Split(b[coreStart+len(gcloudCoreSectionHeader):coreEnd], []byte("\n")) + lines := bytes.Split(b[coreStart+len(gcloudCoreSectionHeader):], []byte("\n")) for _, line := range lines { parts := bytes.Split(line, []byte("=")) if len(parts) == 2 { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-hostname.go new/powerline-go-1.26/segment-hostname.go --- old/powerline-go-1.25/segment-hostname.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-hostname.go 2026-01-14 15:30:15.000000000 +0100 @@ -8,7 +8,10 @@ "strings" ) -func getHostName(fullyQualifiedDomainName string) string { +func getHostName(fullyQualifiedDomainName string, keepFqdnHostname bool) string { + if keepFqdnHostname { + return fullyQualifiedDomainName + } return strings.SplitN(fullyQualifiedDomainName, ".", 2)[0] } @@ -30,7 +33,7 @@ } if p.cfg.ColorizeHostname { - hostName := getHostName(p.hostname) + hostName := getHostName(p.hostname, p.cfg.FqdnHostname) hostPrompt = hostName foregroundEnv, foregroundEnvErr := strconv.ParseUint(os.Getenv("PLGO_HOSTNAMEFG"), 0, 8) @@ -49,7 +52,7 @@ } else if p.cfg.Shell == "zsh" { hostPrompt = "%m" } else { - hostPrompt = getHostName(p.hostname) + hostPrompt = getHostName(p.hostname, p.cfg.FqdnHostname) } foreground = p.theme.HostnameFg diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-kube.go new/powerline-go-1.26/segment-kube.go --- old/powerline-go-1.25/segment-kube.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-kube.go 2026-01-14 15:30:15.000000000 +0100 @@ -1,7 +1,6 @@ package main import ( - "fmt" pwl "github.com/justjanne/powerline-go/powerline" "io/ioutil" "os" @@ -113,7 +112,7 @@ 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 @@ 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/segment-nix-shell.go new/powerline-go-1.26/segment-nix-shell.go --- old/powerline-go-1.25/segment-nix-shell.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/segment-nix-shell.go 2026-01-14 15:30:15.000000000 +0100 @@ -13,7 +13,7 @@ } return []pwl.Segment{{ Name: "nix-shell", - Content: "\uf313", + Content: p.symbols.NixShellIndicator, Foreground: p.theme.NixShellFg, Background: p.theme.NixShellBg, }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/powerline-go-1.25/themes.go new/powerline-go-1.26/themes.go --- old/powerline-go-1.25/themes.go 2024-06-17 14:39:19.000000000 +0200 +++ new/powerline-go-1.26/themes.go 2026-01-14 15:30:15.000000000 +0100 @@ -20,9 +20,12 @@ RepoConflicted string RepoStashed string - VenvIndicator string - NodeIndicator string - RvmIndicator string + DotEnvIndicator string + KubeIndicator string + NixShellIndicator string + NodeIndicator string + RvmIndicator string + VenvIndicator string } // Theme definitions @@ -75,6 +78,9 @@ DotEnvFg uint8 DotEnvBg uint8 + AzureFg uint8 + AzureBg uint8 + AWSFg uint8 AWSBg uint8 ++++++ vendor.tar.gz ++++++
