Skip to content

Allow node indicator to be overridden #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

mjgiarlo
Copy link
Contributor

@mjgiarlo mjgiarlo commented Feb 23, 2022

This commit sets up a pattern for declaring and overriding segment-specific indicators via, e.g., configuration (~/.config/powerline-go/config.json) such as:

{
  "modules": [ "perms", "cwd", "node", "git", "jobs", "root" ],
  "mode": "default",
  "modes": {
    "default": {
      "NodeIndicator":    "\uE781"
    }
  }
}

Also re: testing, I've been happily using this locally for the past ten days. Works like a charm.

This commit sets up a pattern for declaring and overriding segment-specific indicators via, e.g., configuration such as:

```json
{
  "modules": [ "perms", "cwd", "node", "git", "jobs", "root" ],
  "mode": "mjg",
  "modes": {
    "mjg": {
      "NodeIndicator":    "\uE781"
    }
  }
}
```
@justjanne justjanne merged commit c1f9df8 into justjanne:main Mar 8, 2022
@mjgiarlo mjgiarlo deleted the overrideable-node-indicator branch March 8, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants